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?

// Output: <
echo htmlentities('<', ENT_QUOTES, false);

// Expected Output: &lt;
// Actual Output: &amp;lt;
echo htmlentities(htmlentities('<', ENT_QUOTES, false), ENT_QUOTES, false);


Thanks,
Chris

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to