johnsmith153 Posted June 14, 2012 Share Posted June 14, 2012 I have a string of text and I need to remove the hyperlink. So: $text = 'Hello <a href="url">Click HERE</a>'; needs to output 'Hello Click HERE' This sounds simple, but I can't do it. I could easily do it the other way round. I won't know the anchor text though, it could be anything. Link to comment https://forums.phpfreaks.com/topic/264168-convert-anchor-into-anchor/ Share on other sites More sharing options...
Pikachu2000 Posted June 14, 2012 Share Posted June 14, 2012 strip_tags Link to comment https://forums.phpfreaks.com/topic/264168-convert-anchor-into-anchor/#findComment-1353758 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.