#39434 [Opn->Bgs]: strip_tags() fails with greater than in attribute
| From: | tony2001@php.net | Date: | Wed, 08 Nov 2006 17:48:40 +0000 |
| Subject: | #39434 [Opn->Bgs]: strip_tags() fails with greater than in attribute | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-104642@lists.php.net to get a copy of this message | ||
ID: 39434
Updated by: tony2001@php.net
Reported By: geoffers at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Strings related
Operating System: Mac OS 10.4.8
PHP Version: 4.4.4
New Comment:
To process HTML broken in every possible way we would need to implement
a browser in PHP, which is definitely not our goal.
Previous Comments:
------------------------------------------------------------------------
[2006-11-08 17:27:01] geoffers at gmail dot com
Description:
------------
I'm well aware that this an unclear in the HTML specification,
but this would bring PHP inline with IE/Fx/Saf/Op as well as
the W3C Validator.
Reproduce code:
---------------
<?php
echo strip_tags('<span title="test > all">this</span>');
?>
Expected result:
----------------
this
Actual result:
--------------
all">this
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=39434&edit=1