LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: felipe@php.net Date: Tue Aug 19 17:56:48 2008 Subject: #45865 [Opn->Bgs]: incorrect values returned by htmlspecialchars_decode
ID: 45865
Updated by: felipe@php.net
Reported By: firealwaysworks at gmail dot com
-Status: Open
+Status: Bogus
Bug Type: Feature/Change Request
Operating System: Linux
PHP Version: 5.2.6
New Comment:
There is no some bug in this behavior.
Read: http://docs.php.net/htmlspecialchars_decode
Thanks.
Previous Comments:
------------------------------------------------------------------------
[2008-08-19 23:46:47] firealwaysworks at gmail dot com
Description:
------------
As I understand it htmlspecialchars_decode is the inverse of
htmlspecialchars. The bug is that not all characters are inverted
properly.
Thanks,
Michael
Reproduce code:
---------------
<?php
echo "\n".htmlspecialchars_decode(htmlspecialchars("'",ENT_QUOTES));
echo "\n".htmlspecialchars_decode(htmlspecialchars('"',ENT_QUOTES));
?>
Expected result:
----------------
'
"
Actual result:
--------------
'
"
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=45865&edit=1
| Navigate in group php.bugs at sever news.php.net | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by PHP Developer
Powered By PHP Consultants |