note 47039 added to function.strip-tags
| From: | ashley at norris dot org dot au | Date: | Mon, 01 Nov 2004 03:11:43 +0000 |
| Subject: | note 47039 added to function.strip-tags | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-79422@lists.php.net to get a copy of this message | ||
leathargy at hotmail dot com wrote:
"it seems we're all overlooking a few things:
1) if we replace "</ta</tableble>" by removing </table, we're not better
off..."
I beat this by using ($input contains the data):
<?php
while($input != strip_tags($input)) {
$input = strip_tags($input);
}
?>
This iteratively strips tags until all tags have gone :)
----
Manual Page -- http://www.php.net/manual/en/function.strip-tags.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+47039
Delete -- http://master.php.net/manage/user-notes.php?action=delete+47039&report=yes
Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47039&report=yes&reason=bad+code
Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47039&report=yes&reason=spam
Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47039&report=yes&reason=useless+example
Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47039&report=yes&reason=contains+commercial+links
Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47039&report=yes&reason=useless+note
Reject -- http://master.php.net/manage/user-notes.php?action=reject+47039&report=yes
Search -- http://master.php.net/manage/user-notes.php