Re: [PHP4BETA] Small patch to string.c
| From: | rasmus@php.net | Date: | Thu, 01 Jan 1970 00:00:00 +0000 |
| Subject: | Re: [PHP4BETA] Small patch to string.c | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-12380@lists.php.net to get a copy of this message | ||
> While this isn't extensively tested, this patch modifies strip_tags to
> convert > characters encountered in state 0 (the output state) into the
> string ">". Whether or not this is entirely useful is another story.
Hrm.. This doesn't seem like a good idea to me. If you want to convert <
to < feed the output of strip_tags() through htmlspecialchars()
strip_tags() takes an optional argument of allowable tags. Your patch
would render this arg useless.
-Rasmus