title: How to get Base64 string out of HTML
body: <p>I have a div containing an image and some text. The user is able to customize it. Once his modifications are done, I would like to save the div as an image with the text on it.
  Just like if he took a screenshot.</p>
  
  <p>I am able to save images from Base64 strings in my PHP side but I can't get the correct Base64 from the HTML.</p>
  
  <p>So, I would like to know how to get the base64 from the HTML inside my div, using JavaScript or jQuery. I could also add plugins.</p>