I got tired of writing looong function names that should to be short and simple. Maybe it's a 1/1000 a second slower each time - but I don't care.
function slash($str)
{
return addslashes($str);
}
function unslash($str)
{
return stripslashes($str);
}
function entity($str)
{
return htmlspecialchars($str, ENT_QUOTES);
}
Sign up to add your own comment here!
|
|