PHP 4.0 Bug #9072: unexpected behavior in strip_tags
| From: | ctuffli at yahoo dot com | Date: | Fri, 02 Feb 2001 13:08:13 +0000 |
| Subject: | PHP 4.0 Bug #9072: unexpected behavior in strip_tags | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-45605@lists.php.net to get a copy of this message | ||
From: ctuffli@yahoo.com
Operating system: RedHat 6.1
PHP version: 4.0.4
PHP Bug Type: Feature/Change Request
Bug description: unexpected behavior in strip_tags
php setup: ./configure --with-apxs=/usr/local/etc/httpd/bin/apxs --enable-versioning --with-mysql
--enable-track-vars
script: <?php
print strip_tags("> from an earlier email\n");
?>
prints
X-Powered-By: PHP/4.0.4
Content-type: text/html
from an earlier email
and not
> from an earlier email
I'm writting an application which prints email messages and noticed this behavior in messages
that quoted the previous message with the string "> ". I expected strip_tags to do the
equivalent of ereg_replace("<[^>]*>", "", $msg)
--
Edit Bug report at: http://bugs.php.net/?id=9072&edit=1