Issues

ZF-9434: StripTags returns empty string when stripping html comments

Issue Type: Bug Created: 2010-03-16T08:02:21.000+0000 Last Updated: 2010-03-18T12:01:08.000+0000 Status: Resolved Fix version(s): - 1.10.3 (01/Apr/10)

Reporter: Stefan Scherzer (hellfish13) Assignee: Thomas Weidner (thomas) Tags: - Zend_Filter

Related issues: Attachments:

Description

The implementation of Zend_Filter_StripTags fails on the next code (similar to issue ZF-8894):

<pre class="literal">
$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:

<pre class="literal">
$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

Have you found an issue?

See the Overview section for more details.

Copyright

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

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

Contacts