#41716 [Opn->Bgs]: Need Clarification About New htmlentities() Param
| From: | johannes@php.net | Date: | Sun, 17 Jun 2007 09:34:38 +0000 |
| Subject: | #41716 [Opn->Bgs]: Need Clarification About New htmlentities() Param | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-113866@lists.php.net to get a copy of this message | ||
ID: 41716
Updated by: johannes@php.net
Reported By: chris at dented-planet dot net
-Status: Open
+Status: Bogus
Bug Type: Unknown/Other Function
Operating System: Mac OS 10.4.9
PHP Version: 5.2.3
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
.
Previous Comments:
------------------------------------------------------------------------
[2007-06-17 04:25:11] chris at dented-planet dot net
BTW I wouldn't actually use such code. I did it only to achieve that I
think of as "double encoding":)
------------------------------------------------------------------------
[2007-06-16 23:32:46] chris at dented-planet dot net
Description:
------------
I just need a clarification about the new "$double_encode" param for
htmlentities() and htmlspecialchars().
Is it supposed to do as I expect it to do in the code below or am I
misuderstanding its use?
Reproduce code:
---------------
// Output: <
echo htmlentities('<', ENT_QUOTES, false);
// Expected Output: <
// Actual Output: &lt;
echo htmlentities(htmlentities('<', ENT_QUOTES, false), ENT_QUOTES,
false);
------------------------------------------------------------------------
--
Edit this bug report at http://bugs.php.net/?id=41716&edit=1