All pastes #562191 Raw Edit

Unnamed

public text v1 · immutable
·published 2007-06-12 18:33 UTC
rendered paste body
function secure($input) {
   $input = htmlspecialchars($input);
   $input = addslashes($input);
   $input = htmlentities($input);
   $input = str_replace("'", "", $input);
   $input = str_replace(".", "", $input);
   $input = str_replace('"', '', $input);
   $input = str_replace("&", "", $input);
   $input = str_replace(":", "", $input);
   $input = str_replace(";", "", $input);
   $input = str_replace("*", "", $input);
   $input = strip_tags($input);
   $input = utf8_decode($input);
   return $input;
}