#40432 [Asn->Csd]: strip_tags() fails with greater than in attribute

From: Date: Tue, 13 Feb 2007 02:16:32 +0000
Subject: #40432 [Asn->Csd]: strip_tags() fails with greater than in attribute
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-108774@lists.php.net to get a copy of this message
ID: 40432 Updated by: iliaa@php.net Reported By: geoffers at gmail dot com -Status: Assigned +Status: Closed Bug Type: Strings related Operating System: Mac OS 10.4.8 PHP Version: 5.2.1 Assigned To: iliaa New Comment: Thank you for your bug report. This issue has already been fixed in the latest released version of PHP, which you can download at http://www.php.net/downloads.php Previous Comments: ------------------------------------------------------------------------ [2007-02-10 15:46:13] geoffers at gmail dot com Description: ------------ The following valid (X)HTML is not stripped (this has been reported before and closed claiming it is invalid – read the SGML and XML specifications – this is completely valid). 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=40432&edit=1

« previous php.bugs (#108774) next »