Element.stripOut

void stripOut()

Strips this tag out of the document, putting its inner html as children of the parent.

For example, given: <p>hello <b>there</b></p>, if you call stripOut on the b element, you'll be left with <p>hello there<p>.

The idea here is to make it easy to get rid of garbage markup you aren't interested in.