Bug #16724 Updated: strip_tags function
| From: | tobaco at libero dot it | Date: | Mon, 22 Apr 2002 08:00:33 +0000 |
| Subject: | Bug #16724 Updated: strip_tags function | ||
| References: | 1 | Groups: | php.bugs php.doc |
| Request: | Send a blank email to php-bugs+get-5547@lists.php.net to get a copy of this message | ||
ID: 16724
Updated by: tobaco@libero.it
Reported By: tobaco@libero.it
-Status: Feedback
+Status: Closed
Bug Type: Documentation problem
Operating System: linux
PHP Version: 4.2.0
New Comment:
Excuse me but i have made mistake
Previous Comments:
------------------------------------------------------------------------
[2002-04-21 16:47:43] alindeman@php.net
Maybe I'm misunderstanding but the following script
<?
$string=strip_tags("<tr><td><font
size='5'>hello</font></td><tr>","<tr><td>");
print $string;
?>
will produce
"<tr><td>hello</td><tr>"
(expected behavior)
Please expand on what your saying (b/c your first post was a bit hard
to understand) or this is bogus.
------------------------------------------------------------------------
[2002-04-21 15:08:48] tobaco@libero.it
For esample:
$HtmlText =
strip_tags($HtmlText,'<b><i><p><table><td><tr>');
If your $HtmlText is like this:
.....
<tr>
<td><font size="5">Hello!!</font></td>
</tr>
.....
the font tag can not be stripped.
I think that all tags present in allowable tags not are stripped.
This is not present in manual reference
Thank u for all
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=16724&edit=1