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();