note 9886 added to strip_tags
| From: | badger at noemata dot net | Date: | Wed, 29 Nov 2000 19:13:24 +0000 |
| Subject: | note 9886 added to strip_tags | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-8270@lists.php.net to get a copy of this message | ||
the allowed tags argument fails in my installation, so to strip all but <A> (and </A>)
tags I use:
$str = ereg_replace('<([^/a]|([/][^a]))([^>]|\n)*>', '', $str);
http://www.php.net/manual/function.strip-tags.php