How to Remove a Specific Element and Its Child Elements from a String with JQuery
<p>I have a string containing HTML elements as below</p>

<pre><code>var div_elements = "&lt;div id=\"pst_body\"&gt;&lt;span class=\"quote\"&gt;This is the Quoted 
Text&lt;/span&gt;This is the Original Text Within the Div&lt;/div&gt;";
</code></pre>

<p>I want to remove the span of class="quote" and all of its child elements and also text within this span. And I want to Get the Result Back as a string not as an object.</p>

<p>Actually I want the following output</p>

<pre><code>var new_div_elements = "&lt;div id=\"pst_body\"&gt;This is the Original Text Within the Div&lt;/div&gt;";
</code></pre>

<p>I just want to get a string excluding the span of class quote and all its childs, text etch.
How can I perform this Action with JQuery</p>
