i'm looking to see which is faster?
I have a lot of users on the site at any given time and a lot of content to echo
out.
Which would be faster?:
case 1:
echo htmlspecialchars($_POST['name'], ENT_QUOTES);
case 2:
file 1:
function cleanText($string) {
$newString = htmlspecialchars($string, ENT_QUOTES);
return $newString;
}
echo cleanText($_POST['name']);