title: How to display an HTML email for preview on a webpage?
body: <p>I am trying to display a "preview" of an HTML email. I have the HTML in my database and now I need to render it in an iframe, or popup window or something. I am trying to inject the html into a div tag on the page, but it won't display anything. Here is the problem I am running into (I have nested HTML tags):</p>
  
  <pre><code>&lt;html&gt;
      &lt;body&gt;
          &lt;h1&gt;My page&lt;/h1&gt;
          &lt;div id="email-body"&gt;
              &lt;html&gt;
                  &lt;body&gt;
                      &lt;p&gt;email&lt;/p&gt;
                  &lt;/body&gt;
              &lt;/html&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>