jQuery - wrap all unwrapped text in p tags
<p>I have a situation where the following code is getting written to my page. </p>

<pre><code>&lt;div&gt;
    Some text here which is not wrapped in tags
    &lt;p&gt;Some more text which is fine&lt;/p&gt;
    &lt;p&gt;Blah blah another good line&lt;/p&gt;
&lt;/div&gt;
</code></pre>

<p>In this case it always seems to be the first line which is not being wrapped in p tags which might make the solution to this easier, although it's not every time. Some times it is fine.</p>

<p>What I need to do is identify whether the first line is wrapped or not and if not then wrap it. </p>

<p>Unfortunately I'm not sure where to start with this problem so any help would be appreciated.</p>
