Re: ENT_ALL or similar option for htmlspecialchars[_decode]?
| From: | Yasuo Ohgaki | Date: | Fri, 28 Jun 2013 01:43:15 +0000 |
| Subject: | Re: ENT_ALL or similar option for htmlspecialchars[_decode]? | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-67989@lists.php.net to get a copy of this message | ||
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 :)
Regards,
--
Yasuo Ohgaki
yohgaki@ohgaki.net