Re: two questions on serverside validation
| From: | Jan G.B. | Date: | Wed, 25 Aug 2010 15:25:03 +0000 |
| Subject: | Re: two questions on serverside validation | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-307662@lists.php.net to get a copy of this message | ||
2010/8/25 Marc Guay <marc.guay@gmail.com>:
>> function html($text)
>> {
>> return htmlentities($text, ENT_QUOTES, 'UTF-8');
>> }
>>
>> function htmlout($text)
>> {
>> return html($text);
>> }
>
> Possibly irrelevant, and definitely not related to your questions, but
> is it just me or is htmlout() a useless function? Why not just call
> html() directly?
Why not call htmlentities() directly?
:-)
Or: why notuse htmlspecialchars() to speed it up.
Regards