Created
November 4, 2010 04:02
-
-
Save shameerc/662115 to your computer and use it in GitHub Desktop.
Avoid double encoding special characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Use the fourth argument as false | |
echo htmlentities($foo, ENT_COMPAT, 'UTF-8',false); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment