Re: [RFC] Escaping RFC for PHP Core - Updates?

From: Date: Sat, 07 Sep 2013 08:35:07 +0000
Subject: Re: [RFC] Escaping RFC for PHP Core - Updates?
References: 1 2  Groups: php.internals 
Request: Send a blank email to [email protected] to get a copy of this message
Hi Leigh,

On Sat, Sep 7, 2013 at 2:56 PM, Leigh <[email protected]> wrote:

> Looks like the rfc author was unable to implement it himself at the time
> of the proposal.
>
> The last thing in the discussion thread looks like "implement it in PECL
> first, and it might get bundled later"
>
> http://marc.info/?l=php-internals&m=134822086426610&w=2
>
Thank you for the info. I searched my mailbox, but I couldn't find this.

It would be better to implement this as SPL_Escape class.

SPL_Escape::jsString()
SPL_Escape::phpString()
SPL_Escape::html()
SPL_Escape::htmlAttribute()
etc

It looks nicer than Escaper::escapeJs(), Escaper::escapeHtml(), etc.

Any comments?
Anyone mind if I edit the RFC?

Regards,

--
Yasuo Ohgaki
[email protected]


Thread (13 messages)

« previous php.internals (#68939) next »