|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-04-21 15:08 UTC] tobaco at libero dot 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 PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 30 17:00:01 2025 UTC |
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.