ZF-9434: StripTags returns empty string when stripping html comments
Description
The implementation of Zend_Filter_StripTags fails on the next code (similar to issue ZF-8894):
$value = 'test test
div-content
';
$stripTags = new Zend_Filter_StripTags();
$string = $stripTags->filter($value);
The expected result is "test test
div-content
" but an empty string is returned.
The error generates on this line of the Zend_Filter_StripTags implementation:
$value = 'test test
div-content
';
$valueCopy = preg_replace('#
Comments
Posted by Thomas Weidner (thomas) on 2010-03-18T12:01:07.000+0000
Fixed with r21553