ZF-8502: Zend_Filter_StripTags remove all the angle brackets <>
Description
Zend_Filter_StripTags remove all the angle brackets...
--- code --- $string = 'a > b, a < b, a>b, a<b';
$filter = new Zend_Filter_StripTags(); var_dump($filter->filter($string)); var_dump(strip_tags($string));
--- output --- string(12) "a b, a b, a" string(20) "a > b, a < b, a>b, a"
Comments
Posted by Thomas Weidner (thomas) on 2009-12-10T07:22:07.000+0000
Duplicates point 3 of ZF-8483. Seems not to be an issue
Posted by Ken Chou (kenchou77) on 2009-12-13T22:16:46.000+0000
I don't think so.
For example user input a logical expression "a > b", but the result is "a b" after filter. Obviously, this is not the desired result.
On the other hand, Zend_Filter_StripTags and strip_tags() have same name, bug their behavior have too much difference.
strip_tags() keeps some angle brackets. pls see above description.
Posted by Rob Allen (rob) on 2012-11-20T20:53:30.000+0000
Bulk change of all issues last updated before 1st January 2010 as "Won't Fix".
Feel free to re-open and provide a patch if you want to fix this issue.