How can you find all HTML hyper link tags in a string and replace them with their href value?

Posted by hsatterwhite on Stack Overflow See other posts from Stack Overflow or by hsatterwhite
Published on 2010-04-15T12:21:53Z Indexed on 2010/04/15 12:33 UTC
Read the original article Hit count: 293

Filed under:
|
|

I'd like to take a string of text and find all of the hyper link tags, grab their href value, and replace the entire hyper link tag with the value of the href attribute.

© Stack Overflow or respective owner

Related posts about php

Related posts about html