/ Published in: PHP
Just a small function to sanitize the user's input of any xss and sqli. I saw a lot of ones that didn't include htmlentities or htmlspecialchars, and were still vulnerable to persistent/reflected xss.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function clean($a) { { } return $a; }