processing textarea field input with php
<p>I need a function to prosses my textarea field input before I save it in my database.</p>

<p>Textarea field input:</p>

<pre class="lang-none prettyprint-override"><code>Hi
sahdj sdhjsdj f hasjhf ash dsdhasd hjsdhjashdhsadj sjsadhjsdhjhassdnsdnnjas
Thanks
</code></pre>

<p>I want to make it look like this:</p>

<pre class="lang-html prettyprint-override"><code>Hi&lt;p&gt;&lt;/p&gt;sahdj sdhjsdj f hasjhf ash dsdhasd hjsdhjashdhsadj sjsadhjsdhjhassdnsdnnjas&lt;p&gt;&lt;/p&gt;Thanks
</code></pre>

<p>Just want to replace line break with a <code>&lt;p&gt;&lt;/p&gt;</code>.</p>
