Unwrap Text
by Ryan Perez
HTML
<div>
<span class="red">red text</span> some more text <span class="blue">blue text</span>
</div>
JavaScript
$("span").contents().unwrap();
by Ryan Perez
<div>
<span class="red">red text</span> some more text <span class="blue">blue text</span>
</div>
$("span").contents().unwrap();