note 1634 modified in function.strip-tags by philip
| From: | philip@php.net | Date: | Fri, 21 Sep 2001 15:45:46 +0000 |
| Subject: | note 1634 modified in function.strip-tags by philip | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-18147@lists.php.net to get a copy of this message | ||
Regarding strip_tags(), the following seems to work pretty well as a substitute, like for php3.0.7 :
<br>
$userMessage = ereg_replace('<([^>]|\n)*>', '', $userMessage);
</br>
[ed. list solid alternatives to strip_tags()]
http://www.php.net/manual/en/function.strip-tags.php