JQuery, remove element from string
<p>I have a string:</p>

<pre><code>var s = '&lt;h1&gt;heading&lt;/h1&gt;&lt;p&gt;para&lt;/p&gt;';
</code></pre>

<p>and I want to remove the <code>h1</code> element from it.
Ive tried:</p>

<pre><code>$(s).remove('h1');
</code></pre>

<p>but s still contains the <code>h1</code> element
Ive also tried:</p>

<pre><code>s = $(s).remove('h1');
</code></pre>

<p>and</p>

<pre><code>$('h1', s).remove();
</code></pre>

<p>and</p>

<pre><code>$('h1', $(s)).remove();
</code></pre>

<p>etc etc etc</p>

<p>Any ideas?</p>
