Created
November 8, 2014 22:53
-
-
Save adarwash/642b62e6d9e49eaf658c to your computer and use it in GitHub Desktop.
Added comments
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
<?php | |
function escape($string) { | |
return htmlentities($string, ENT_QUOTES, 'UTF-8'); | |
//ENT_QUOTES find any double or sigle qoutes and remove them. | |
// UFT-8 text format type | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment