.text() function does not show HTML tags like I want. How do I fix this?
<p>I am trying to limit 300 charecters to show in a container and using this</p>

<pre><code>&lt;script&gt;
    $(function () {
        $('.shippingMessage').append($('#forQuickViewOnly'));
        var myDiv = $('#firstPara');
        myDiv.text(myDiv.text().substring(0, 300));
        $('.productdetailtopquickview .productdetailshopnowform').appendTo($('.infoHolder'));
    });
&lt;/script&gt;
</code></pre>

<p><strong>I am trying to show <code>&lt;ul&gt;&lt;li&gt;&lt;li&gt;&lt;/ul&gt;</code> structure but i am getting a paragraph.</strong> In other words, the list formatting is getting stripped. Any idea how to prevent that? </p>
