Jump to content

Removing the <a> tag with regex


BillyBoB

Recommended Posts

I'm need to remove the <a> tag from any text but leave all other tags.

The <a> tag could include any possible attributes including those like id, class, or href. If you can help me that would be great or just point me in the right direction.

I have been working on this for hours still nothing comes up.

 

Link to comment
https://forums.phpfreaks.com/topic/99917-removing-the-tag-with-regex/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.