I\'ve got some html that looks like this:
red text some more text blue text
Wouldn't a simple $('#my-div').text ($('#my-div').text ()) suffice, without resorting to unwrapping?
$('#my-div').text ($('#my-div').text ())