Bug #52011 [Opn->Bgs]: strip_tags error
| From: | dtajchreber@php.net | Date: | Sun, 06 Jun 2010 20:20:49 +0000 |
| Subject: | Bug #52011 [Opn->Bgs]: strip_tags error | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-151139@lists.php.net to get a copy of this message | ||
Edit report at http://bugs.php.net/bug.php?id=52011&edit=1
ID: 52011
Updated by: dtajchreber@php.net
Reported by: Hudson dot Atwell at gmail dot com
Summary: strip_tags error
-Status: Open
+Status: Bogus
Type: Bug
Package: *General Issues
PHP Version: 5.2.13
New Comment:
Thank you for taking the time to write to us, but this is not
a bug. Please double-check the documentation available at
http://www.php.net/manual/ and the instructions on how to
report
a bug at http://bugs.php.net/how-to-report.php
david@beirut:~$ cat test.php
<?php
var_dump(strip_tags('<h1>heading 1</h1><!-- asdfasdfasdf --><?php echo
"cheese";
?><p>paragraph</p>'));
david@beirut:~$ php test.php
string(18) "heading 1paragraph"
"Note: HTML comments and PHP tags are also stripped. This is hardcoded
and can
not be changed with allowable_tags."
I don't see anything unexpected on 5.2.13 or 5.3.3. The entire comment
is
stripped out as the manual says.
Previous Comments:
------------------------------------------------------------------------
[2010-06-06 22:01:32] Hudson dot Atwell at gmail dot com
Description:
------------
if <!--- comments --> are in the string then the strip_tags() output
will be blank.
Test script:
---------------
if <!--- comments --> are in the string then the strip_tags() output
will be blank.
Expected result:
----------------
if <!--- comments --> are in the string then the strip_tags() output
will be blank.
Actual result:
--------------
if <!--- comments --> are in the string then the strip_tags() output
will be blank.
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/bug.php?id=52011&edit=1