note 53632 added to function.strip-tags
| From: | php at scowen dot com | Date: | Tue, 07 Jun 2005 19:50:34 +0000 |
| Subject: | note 53632 added to function.strip-tags | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-90084@lists.php.net to get a copy of this message | ||
I have had a similar problem to kangaroo232002 at yahoo dot co dot uk when stripping tags from html
containing javascript. The javascript can obviously contain '>' and '<' as
comparison operators which are seen by strip_tags() as html tags - leading to undesired results.
To christianbecke at web dot de - this can be third-party html, so although perhaps not always
'correct', that's how it is!
----
Manual Page -- http://www.php.net/manual/en/function.strip-tags.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+53632
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+53632&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+53632&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+53632&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+53632&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+53632&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+53632&report=yes
Search -- http://master.php.net/manage/user-notes.php