Answers for "Input sanitization to prevent XSS"

PHP
0

Input sanitization to prevent XSS

$name = $_GET["name"];
$safename = htmlspecialchars($name);
echo "Welcome $safename";
Posted by: Guest on March-12-2022

Browse Popular Code Answers by Language