Input sanitization to prevent XSS

91

$name = $_GET["name"];
$safename = htmlspecialchars($name);
echo "Welcome $safename";

Comments

Submit
0 Comments