title: Painlessly pass HTML to javascript
body: <p>I need to pass html to javascript so that I can show the html on demand.
  I can do it using textareas by having a textarea tag with the html content on the page, like so: <code>&lt;textarea id="html"&gt;{whatever html I want except other textareas}&lt;/textarea&gt;</code>
  then using jquery I can present it on the page:</p>
  
  <pre><code>$("#target").html($("#html").val());
  </code></pre>
  
  <p>What I want to know is how to do it properly, without having to use textareas or having the html present in the <code>&lt;body&gt;</code> of the page at all?</p>