How to delete string from string with regex and jQuery/JS?
<p>I wonder, how to delete: </p>

<pre><code>&lt;span&gt;blablabla&lt;/span&gt;
</code></pre>

<p>from:</p>

<pre><code>&lt;p&gt;Text wanted &lt;span&gt;blablabla&lt;/span&gt;&lt;/p&gt;
</code></pre>

<p>I'm getting the text from <strong>p</strong> using:</p>

<pre><code>var text = $('p').text();
</code></pre>

<p>And for some reason I'd like to remove from <strong>var text</strong> the span and its content.</p>

<p>How can I do it? </p>
