codice:
function filter_html($what){
$what = str_replace( "&#" , "(^)-(^)" , $what );
$what = str_replace( "&" , "&" , $what );
$what = str_replace( ">" , ">" , $what );
$what = str_replace( "<" , "<" , $what );
$what = str_replace( "\"" , """ , $what );
$what = str_replace( "!" , "!" , $what );
$what = str_replace( "'" , "'" , $what );
$what = str_replace( "(^)-(^)" , "&#" , $what );
$what = str_replace("`" ,"" , $what );
$what = ereg_replace("\n" , "
" , $what );
$what = ereg_replace("\r" , "" , $what );
$what = ereg_replace("à" , "à" , $what );
$what = ereg_replace("Ã" , "à" , $what );
$what = ereg_replace("è" , "è" , $what );
$what = ereg_replace("é" , "é" , $what );
$what = ereg_replace("ì" , "ì" , $what );
$what = ereg_replace("ò" , "ò" , $what );
$what = ereg_replace("ù" , "ù" , $what );
$what = ereg_replace("€" , "€" , $what );
$what = ereg_replace("°" , "°" , $what );
$what = ereg_replace("§" , "§" , $what );
return $what;
}