Hello
I would like to know how to delete links and may not appear click able on a string using preg_replace, I have a issue with regular expressions? Also how to delete images 'being click able or not' ?
Thank you
Delete links
Moderator: General Moderators
-
klevis miho
- Forum Contributor
- Posts: 413
- Joined: Wed Oct 29, 2008 2:59 pm
- Location: Albania
- Contact:
Re: Delete links
Try this
preg_replace('#<a(.+?)</a>#s', '', $string);
preg_replace('#<a(.+?)</a>#s', '', $string);