This is my code
how to remove wrapper span tag (Don’t remove text)
<ul>
<li>
<a href="#">
</a>
<ul>
<li>
<a href="#">
<span>Removce wraper tag</span>
</a>
</li>
</ul>
<li>
</ul>
You can use jQuery’s
unwrapfor that. Just use any selector that will identify thespan, and then callunwrap. For instance, if you give thespanan ID (this is just an example), then:Live example | source