Skip to content

Instantly share code, notes, and snippets.

@adarwash
Created November 8, 2014 22:53
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save adarwash/642b62e6d9e49eaf658c to your computer and use it in GitHub Desktop.
Save adarwash/642b62e6d9e49eaf658c to your computer and use it in GitHub Desktop.
Added comments
<?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