Make a user defined function to perform XSS filtering
<?php
function sanitise($arg){
$arg = strip_tags($arg);
$arg = htmlentities($arg);
$arg = htmlspecialchars($arg);
$arg = trim($arg);
return $arg;
}
?>
Sanitisation in PHP
XSS Filtering : Preventing user or hacker from injecting any other script such that it donot enables php to execute.
0 Comments