How to strip HTML <p> tags injavascript without using regex
<p>I reading a text using .Html() and copying the content to the textarea.  I don't want to keep anything except the <code>&lt;br/&gt;</code>  tag wich I intend to replace to keep the new line formatting.  Basically, I have <code>&lt;p&gt; &lt;p/&gt;</code> which I no more want to keep when I am copying to the textarea.  How can I do that without using regex expression?</p>

<pre><code>$("#myText").val($.trim($(this).closest('tr').next('tr').find('.mytext').html().replace('&lt;br/&gt;', '/r/n'));
</code></pre>

<hr>
