jQuery loses formatting
<p>I am new to jQuery and trying to inject the HTML content of one <code>&lt;div&gt;</code> into another <code>&lt;div&gt;</code>. 
This is the code I'm using:</p>

<pre><code>&lt;div class="relatedItems"&gt; &lt;/div&gt;

&lt;script&gt;
    jQuery.noConflict();
    jQuery(document).ready(function() {
        var related = jQuery("div.itemRelated").html();   
        jQuery("div.relatedItems").html("&lt;div class='itemRelated'&gt;" + related + "&lt;/div&gt;");  
    });
&lt;/script&gt;
</code></pre>

<p>The problem is that the injected HTML is not formatted the same way as the original.</p>

<p>I would love to post an image but can't because I'm a new user</p>

<p>Any ideas if I'm missing anything?</p>
