note 66483 added to function.strip-tags
| From: | Sébastien at osu1 dot php dot net | Date: | Wed, 24 May 2006 03:22:03 +0000 |
| Subject: | note 66483 added to function.strip-tags | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-111909@lists.php.net to get a copy of this message | ||
hum, it seems that your function "theRealStripTags" won't have the right behavior in
some cases, for example:
<?php
theRealStripTags("<!-- I want to put a <div>tag</div> -->");
theRealStripTags("<!-- Or a carrot > -->");
theRealStripTags("<![CDATA[what about this! It's to protect from HTML characters like
<tag>, > and so on in XML, no?]]> -->");
?>
----
Server IP: 61.195.146.164
Probable Submitter: 219.111.193.249
----
X-Spam-Status: No, hits=3.8 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER,
HTML_20_30 autolearn=no version=2.64
----
Manual Page -- http://www.php.net/manual/en/function.strip-tags.php
Edit -- http://master.php.net/note/edit/66483
Del: integrated -- http://master.php.net/note/delete/66483/integrated
Del: useless -- http://master.php.net/note/delete/66483/useless
Del: bad code -- http://master.php.net/note/delete/66483/bad+code
Del: spam -- http://master.php.net/note/delete/66483/spam
Del: non-english -- http://master.php.net/note/delete/66483/non-english
Del: in docs -- http://master.php.net/note/delete/66483/in+docs
Del: other reasons-- http://master.php.net/note/delete/66483
Reject -- http://master.php.net/note/reject/66483
Search -- http://master.php.net/manage/user-notes.php