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

Fixed with r21553