Re: ENT_ALL or similar option for htmlspecialchars[_decode]?
| From: | Kris Craig | Date: | Fri, 28 Jun 2013 02:10:55 +0000 |
| Subject: | Re: ENT_ALL or similar option for htmlspecialchars[_decode]? | ||
| References: | 1 2 3 4 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-67991@lists.php.net to get a copy of this message | ||
On Thu, Jun 27, 2013 at 6:43 PM, Yasuo Ohgaki <yohgaki@ohgaki.net> wrote:
> Hi Kris,
>
> 2013/6/27 Kris Craig <kris.craig@gmail.com>
>
>> Yeah I tried html_entity_decode already, but it just returned NULL. On
>> the same input string, htmlspecialchars_decode returned the input string
>> but with *some* special characters decoded; 10 and 13 ("\r\n", I think)
>> were left in their encoded state. I'm not sure why there wouldn't be an
>> option to decode all html special characters.
>>
>
> Not only HTML entities, we really needs to add several decoder/encoder to
> core.
> For instance, Javascript \uXXXX, HTML &#XX/&#XXXX, etc.
> I hope someone is working on it :)
>
Would you be interested in co-authoring an RFC with me for this?
--Kris