Re: New htmlentities() '$double_enocde' Param Question

From: Date: Tue, 19 Jun 2007 15:19:15 +0000
Subject: Re: New htmlentities() '$double_enocde' Param Question
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-257417@lists.php.net to get a copy of this message
On 6/17/07, Chris <chris@dented-planet.net> wrote:
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: &lt; echo htmlentities('<', ENT_QUOTES, false); // Expected Output: &lt; // Actual Output: &amp;lt; echo htmlentities(htmlentities('<', ENT_QUOTES, false), ENT_QUOTES, false);
Your false value for your htmlentities() call should be the 4th parameter, not the 3rd. -- Greg Donald http://destiney.com/

« previous php.general (#257417) next »