note 82640 added to function.strip-tags
| From: | LK at osu1 dot php dot net | Date: | Sat, 19 Apr 2008 23:30:45 +0000 |
| Subject: | note 82640 added to function.strip-tags | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-138554@lists.php.net to get a copy of this message | ||
Concerning all of the notes about which attributes to include in strip_tags_attributes(), the latest
of which is by Kalle Sommer Nielsen:
Correct me if I'm wrong, but isn't it a lot easier to simply reject any attribute that
starts with "on"? Thus, the whole array of various javascript attributes could be replaced
with "on\w+".
I am not aware of any non-javascript attributes that start with these two letters, and if there
were, it would be easier to make an exception for them than for the countless JS attributes.
----
Server IP: 66.207.199.35
Probable Submitter: 67.71.92.18
----
Manual Page -- http://www.php.net/manual/en/function.strip-tags.php
Edit -- https://master.php.net/note/edit/82640
Del: integrated -- https://master.php.net/note/delete/82640/integrated
Del: useless -- https://master.php.net/note/delete/82640/useless
Del: bad code -- https://master.php.net/note/delete/82640/bad+code
Del: spam -- https://master.php.net/note/delete/82640/spam
Del: non-english -- https://master.php.net/note/delete/82640/non-english
Del: in docs -- https://master.php.net/note/delete/82640/in+docs
Del: other reasons-- https://master.php.net/note/delete/82640
Reject -- https://master.php.net/note/reject/82640
Search -- https://master.php.net/manage/user-notes.php