note 12642 deleted from function.strip-tags by jimw
| From: | jimw@php.net | Date: | Mon, 29 Oct 2001 01:34:32 +0000 |
| Subject: | note 12642 deleted from function.strip-tags by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-19545@lists.php.net to get a copy of this message | ||
The absolute minimum syntax for the allowable_tags argument is a straightforward concatenation of
all the tags you allow, e.g.
$clean = strip_tags($untrusted, '<a><i><b><ul><li>');
I wonder if there's a way to further restrict the allowable tags by attribute, e.g. allow <a
href...> but not <a href... target...>