0

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?

Rasclatt
  • 12,498
  • 3
  • 25
  • 33

0 Answers0