#39434 [Bgs]: strip_tags() fails with greater than in attribute
| From: | geoffers at gmail dot com | Date: | Fri, 04 May 2007 10:33:06 +0000 |
| Subject: | #39434 [Bgs]: strip_tags() fails with greater than in attribute | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-112231@lists.php.net to get a copy of this message | ||
ID: 39434
User updated by: geoffers at gmail dot com
Reported By: geoffers at gmail dot com
Status: Bogus
Bug Type: Strings related
Operating System: Mac OS 10.4.8
PHP Version: 4.4.4
New Comment:
This _isn't_ broken HTML. It is completely and utterly valid.
Resubmitted as #40432, and fixed in 5.2.2.
Previous Comments:
------------------------------------------------------------------------
[2006-11-08 17:48:40] tony2001@php.net
To process HTML broken in every possible way we would need to implement
a browser in PHP, which is definitely not our goal.
------------------------------------------------------------------------
[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