ZF-8502: Zend_Filter_StripTags remove all the angle brackets <>

Issue Type: Bug Created: 2009-12-08T20:01:43.000+0000 Last Updated: 2012-11-20T20:53:30.000+0000 Status: Closed Fix version(s): Reporter: Ken Chou (kenchou77) Assignee: None Tags: - Zend_Filter

Related issues: - ZF-8483



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"


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.

Have you found an issue?

See the Overview section for more details.


© 2006-2019 by Zend, a Rogue Wave Company. Made with by awesome contributors.

This website is built using zend-expressive and it runs on PHP 7.