S: function to remove & break URLs
| From: | RalfGesellensetter | Date: | Sun, 27 Aug 2006 17:40:56 +0000 |
| Subject: | S: function to remove & break URLs | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-241145@lists.php.net to get a copy of this message | ||
Dear list,
does anybody of you know these spammers filling up your guestbook with
URLs? With strip_tags, I managed to remove the html tags. But what I
want is this:
1. Detect such entries (to hide them by default)
2. Destroy URLs
As for 2. I am thinking of adding spaces after at least every 12
characters (or even after every dot) - what do you recommend?
Just removing "http://" still leaves the domain behind.
A good start could be to replace "." by ". " and "/" by " /
".
Any code to share?
Cheers
Ralf.