Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Not an Issue
-
Affects Version/s: 1.9.6
-
Fix Version/s: 1.9.7
-
Component/s: Zend_Filter
-
Labels:None
Description
When using the Zend_Filter_StripTags it will strip starting from a single '<'.
$text = 'This is an example. Bla < 300';
$filter = new Zend_Filter_StripTags();
$filteredText = $filter->filter($text);
Zend_Debug::dump($filteredText);
The result:"
string(24) "This is an example. Bla "
Why is the < (and the part after) removed? It isn't a tag.
This is expected behaviour and even tested to get sure it is done this way.
Only > or < is allowed.