I'm using the htmlspecialchars()
function to prevent XSS attacks but I'm not sure if that is the correct way to prevent such attacks:
htmlspecialchars($input_value);
If not, what is the best/simplest way to do it?
I'm using the htmlspecialchars()
function to prevent XSS attacks but I'm not sure if that is the correct way to prevent such attacks:
htmlspecialchars($input_value);
If not, what is the best/simplest way to do it?