#20343 [Opn->Bgs]: strip_tags strip not only VALID tags
| From: | derick@php.net | Date: | Sun, 10 Nov 2002 19:42:26 +0000 |
| Subject: | #20343 [Opn->Bgs]: strip_tags strip not only VALID tags | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-24450@lists.php.net to get a copy of this message | ||
ID: 20343
Updated by: derick@php.net
Reported By: atz@atz.msk.ru
-Status: Open
+Status: Bogus
Bug Type: Strings related
Operating System: FreeBSD 4.7-STABLE
PHP Version: 4CVS-2002-11-10
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
Previous Comments:
------------------------------------------------------------------------
[2002-11-10 13:40:08] atz@atz.msk.ru
For example:
PHP-code
<?
header("Content-type: text/plain");
echo strip_tags("the 5<6 but 5>4");
?>
will produce
the 54
I think, that strip_tags() "think", that "<6 but 5>" is normal
HTML-tag, but this not true.
More examples:
echo strip_tags("start <32423423423> end");
echo strip_tags("start <òåñò>not inside tag</òåñò> end");
EXCLUSIVE example:
echo strip_tags('<IMG src="..." alt="next >>">');
It will produce
>">
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=20343&edit=1