.html() of query not preserving the new line feed
<p>I am appending data to jQuery Accordion like this</p>

<pre><code>$('&lt;div&gt;').append($('&lt;p&gt;').attr('style', 'font-size:10px').html(strData));
</code></pre>

<p>where my strData is a line coming from database. This string has line breaks,
but once it get appended, it loses all its line break and show in one line.
For the same data when in alert it, it shows as I want.
How is this caused and how can I solve it?</p>
