Re: [PHP4BETA] Small patch to string.c

From: 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 "&gt;". 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 &lt; 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

« previous php.version4 (#12380) next »