If I have some HTML that looks like this:
This is some text that is being written with a high
This will do what you want, and also preserve any tags within the .highlight span.
content = $(".highlight").contents(); $(".highlight").replaceWith(content);