#41716 [Opn]: Need Clarification About New htmlentities() Param
| From: | chris at dented-planet dot net | Date: | Sun, 17 Jun 2007 04:25:11 +0000 |
| Subject: | #41716 [Opn]: Need Clarification About New htmlentities() Param | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-113861@lists.php.net to get a copy of this message | ||
ID: 41716
User updated by: chris at dented-planet dot net
Reported By: chris at dented-planet dot net
Status: Open
Bug Type: Unknown/Other Function
Operating System: Mac OS 10.4.9
PHP Version: 5.2.3
New Comment:
BTW I wouldn't actually use such code. I did it only to achieve that I
think of as "double encoding":)
Previous Comments:
------------------------------------------------------------------------
[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