If I have some HTML that looks like this:
This is some text that is being written with a high
You get the text, and replace the span with it:
var wrap = $('.highlight'); var text = wrap.text(); wrap.replaceWith(text);