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. Quote Link to comment Share on other sites More sharing options...
Pikachu2000 Posted June 14, 2012 Share Posted June 14, 2012 strip_tags Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.