Remove certain tags and the html between them - Jquery
<p>If I have a string that contains this.</p>

<pre><code>Hi my name is &lt;span class="name"&gt;Joe&lt;/span&gt;. Just wanted to say &lt;b&gt;Hi&lt;/b&gt;.
</code></pre>

<p>And I want to remove certain tags including what fills it. Example with this string would be the <code>&lt;span&gt;</code> tag only. </p>

<p><strong>I would remove</strong></p>

<p><code>&lt;span class="name"&gt;Joe&lt;/span&gt;</code></p>

<p><strong>...and the finished output would be</strong></p>

<pre><code>Hi my name is . Just wanted to say &lt;b&gt;Hi&lt;/b&gt;. 
</code></pre>

<p>How would I do this?</p>
