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

Duplicates point 3 of ZF-8483. Seems not to be an issue

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.

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.