How to remove hyperlink but keep text for an array of links?

Posted by Keith Donegan on Stack Overflow See other posts from Stack Overflow or by Keith Donegan
Published on 2012-10-06T15:31:59Z Indexed on 2012/10/06 15:37 UTC
Read the original article Hit count: 169

Filed under:
|
|

My question is fairly similar to this question: Remove hyperlink but keep text? but, I can't seem to workout how I can feed an array of class names and do this in one go?

For Example

<a class="unwrap" href="#">Blah</a>
<a class="unwrap" href="#">Blah</a>
<a href="#">Blah</a>
<a class="unwrap" href="#">Blah</a>

I would just like the links with the unwrap class to be modified.

© Stack Overflow or respective owner

Related posts about jQuery

Related posts about hyperlink