note 14780 added to function.strip-tags.php
| From: | info at onlinetools dot org | Date: | Tue, 14 Aug 2001 15:12:28 +0000 |
| Subject: | note 14780 added to function.strip-tags.php | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-16700@lists.php.net to get a copy of this message | ||
If you only need to strip PHP tags, you can use:
$str=eregi_replace('<\?([^?\>]|\n)*\?>','',$str);
http://www.php.net/manual/en/function.strip-tags.php