Salve;

stavo pensando ad una funzione x aggiungere i caratteri di escape e rimuovere i tag HTML dagli array di get e post. Ne ho fatta una, che cosa ne pensate?

Codice PHP:
function sanitize()
{
        global 
$_GET;
        global 
$_POST;
        if(isset(
$_GET))
        {
            foreach(
$_GET as $key=>$value)
            {
                
$_GET[$key] = mysql_escape_string(strip_tags($value));
            }
        }
        if(isset(
$_POST))
        {
            foreach(
$_POST as $key=>$value)
            {
                
$_POST[$key] = mysql_escape_string(strip_tags($value));
            }
        }

Grassie :P