我有这个:
<div>All <span class="hl">text</span> should <span class="hl">be <span class="hl">unwrapped</span> <span>but not me</span> </span></div>
如何删除所有跨度(使用 class="h1")来获得这个?
<div>All text should be unwrapped <span>but not me</span></div>
ps:会考虑javascript Regex或jquery解决方案