note 100231 deleted from function.strip-tags by danbrown
| From: | danbrown@php.net | Date: | Sun, 03 Oct 2010 22:28:20 +0000 |
| Subject: | note 100231 deleted from function.strip-tags by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-172919@lists.php.net to get a copy of this message | ||
Note Submitter: orjtor
----
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.