note 100231 added to function.strip-tags
| From: | orjtor at osu1 dot php dot net | Date: | Sun, 03 Oct 2010 09:04:17 +0000 |
| Subject: | note 100231 added to function.strip-tags | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-172904@lists.php.net to get a copy of this message | ||
Referring to nauthiz693 12-Jun-2009 08:31
Modified strip_tags_attributes function is working great. I think the functionality should be
included to strip_tags function.
I though would like to add a note or change the default value for $allowattributes parameter to the
function.
If you would like to allow '<p>' but remove all attributes you either have to call
strip_tags_attributes($string,"<p>",""); or change the default parameter
to $allowattributes="" in the declaration and call
strip_tags_attributes($string,"<p>");. I would prefer the later.
----
Server IP: 69.147.83.197
Probable Submitter: 83.255.183.185
----
Manual Page -- http://www.php.net/manual/en/function.strip-tags.php
Edit -- https://master.php.net/note/edit/100231
Del: integrated -- https://master.php.net/note/delete/100231/integrated
Del: useless -- https://master.php.net/note/delete/100231/useless
Del: bad code -- https://master.php.net/note/delete/100231/bad+code
Del: spam -- https://master.php.net/note/delete/100231/spam
Del: non-english -- https://master.php.net/note/delete/100231/non-english
Del: in docs -- https://master.php.net/note/delete/100231/in+docs
Del: other reasons-- https://master.php.net/note/delete/100231
Reject -- https://master.php.net/note/reject/100231
Search -- https://master.php.net/manage/user-notes.php