turt2live

Untitled

May 23rd, 2012
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.21 KB | None | 0 0
  1. function clean($input){
  2.     if(get_magic_quotes_gpc()){
  3.         $input = stripslashes($input);
  4.     }
  5.     //$input = mysql_real_escape_string($input);
  6.     $input = htmlentities($input, ENT_COMPAT, "UTF-8");
  7.     return $input;
  8. }
Advertisement
Add Comment
Please, Sign In to add comment