note 30811 added to function.preg-replace
| From: | tilli at tillis dot de | Date: | Sun, 30 Mar 2003 20:28:13 +0000 |
| Subject: | note 30811 added to function.preg-replace | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-45991@lists.php.net to get a copy of this message | ||
This does a pretty good job of stripping HTML tags
preg_replace ("/<\/*((\w+)|(\s)|[=\"])+>/i", "", $string);
--
http://www.php.net/manual/en/function.preg-replace.php
http://master.php.net/manage/user-notes.php?action=edit+30811
http://master.php.net/manage/user-notes.php?action=delete+30811
http://master.php.net/manage/user-notes.php?action=reject+30811