title: How to store a HTML snippet and insert it later in the document?
body: <p>Is there a way to store a HTML snippet in a variable using Javascript or jQuery like this? (obviously it's a non-working an example)</p>
  
  <pre><code>var mysnippet = &lt;&lt; EOF
  &lt;div class="myclass"&gt;
    &lt;div class="anotherclass"&gt;
      Some dummy text
    &lt;/div&gt;
  &lt;/div&gt;
  EOF
  </code></pre>
  
  <p>And then insert it in the document using jQuery:</p>
  
  <pre><code>mysnippet.append($('#someelement'));
  </code></pre>
  
  <p><strong>EDIT:</strong></p>
  
  <p><strong>Please, read this before answering of commenting:</strong> What I have is a raw HTML snippet <strong>inside my JS file</strong>, and I need to store it in a Javascript variable using something like that EOF construction. I need to avoid putting it between quotation marks.</p>
  
  <p>If it's not possible using Javascript and/or jQuery, then the question has no solution.</p>