Doc->Req #66264 [Opn]: htmlspecialchars_decode() does not take an encoding argument.
| From: | aharvey@php.net | Date: | Wed, 11 Dec 2013 18:10:33 +0000 |
| Subject: | Doc->Req #66264 [Opn]: htmlspecialchars_decode() does not take an encoding argument. | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-183237@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=66264&edit=1
ID: 66264
Updated by: aharvey@php.net
Reported by: lyle dot mantooth at primasupply dot com
Summary: htmlspecialchars_decode() does not take an encoding
argument.
Status: Open
-Type: Documentation Problem
+Type: Feature/Change Request
-Package: Documentation problem
+Package: Strings related
Operating System: Linux Mint
PHP Version: 5.4.22
Block user comment: N
Private report: N
New Comment:
Transmogrifying into a feature request: htmlspecialchars_decode() doesn't currently support a
character set parameter (although the internal php_unescape_html_entities() function it calls does).
Previous Comments:
------------------------------------------------------------------------
[2013-12-11 14:41:21] lyle dot mantooth at primasupply dot com
Description:
------------
---
From manual page: http://www.php.net/function.htmlspecialchars-decode
---
Of all the functions that handle converting HTML entities to and from their character equivalents,
htmlspecialchars_decode() is the only one that doesn't seem to care about the string encoding.
* htmlspecialchars(), $encoding parameter added in PHP 4.1.0.
* htmlentities(), $encoding parameter added in PHP 4.1.0.
* html_entity_decode(), function added in PHP 4.3.0, presumably with $encoding parameter from the
beginning.
* hmtlspecialchars_decode(), function added in PHP 5.1.0, but no $encoding parameter.
This may be only a documentation problem, but if it isn't, then it's a real problem
working with this API without even knowing what the default encoding is. Did it change in PHP 5.4.0
for this function, like it did for the others? I still don't know.
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=66264&edit=1