note 36086 added to function.strip-tags
| From: | schwarzenneger at hotmail dot com | Date: | Thu, 25 Sep 2003 13:13:31 +0000 |
| Subject: | note 36086 added to function.strip-tags | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-57095@lists.php.net to get a copy of this message | ||
Seems like the tags aren't really *stripped*, they get replaced by spaces. You can do a
<? preg_replace('/\s+/s', ' ', $my_text); ?>
to remove redundant whitespace and reduce the size of the stripped string.
----
Manual Page -- http://www.php.net/manual/en/function.strip-tags.php
Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+36086
Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+36086&report=yes
Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+36086&report=yes