I am wondering if it is possible to remove a tag but leave the content in tact? For example, is it possible to remove the SPAN tag but leave SPAN\'s content there?
jQuery has easier ways:
var spans = $('span'); spans.contents().unwrap();
With different selector methods, it is possible to remove deeply nested spans or just direct children spans of an element.