Re: [RFC] Escaping RFC for PHP Core - Updates?
| From: | Yasuo Ohgaki | Date: | Fri, 27 Sep 2013 00:52:31 +0000 |
| Subject: | Re: [RFC] Escaping RFC for PHP Core - Updates? | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-69368@lists.php.net to get a copy of this message | ||
Hi Pierre,
On Sat, Sep 7, 2013 at 5:51 PM, Pierre Joye <pierre.php@gmail.com> wrote:
> I like the goal of this proposal.
>
> It would however fits much better in ext/filter. Yes, escaping has
> different purposes than filtering.
>
> I have some worries about the implementation. It is not an easy task and
> some external libraries may already have these features (esp. CSS or JS).
>
> About the API:
>
> To have a kind of wrapper class is not very useful. It will most likely
> end with static methods with a large set of arguments or options array, not
> very sexy.
>
I agree. It would end up with static methods and not cool.
If it's going to be static method only calls, usual functions
are better.
ext/filter is a good option.
I'll add this in the RFC as a choice.
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net