How can I sanitize user input with PHP?
Asked 07 September, 2021
Viewed 3.1K times
  • 55
Votes

Is there a catchall function somewhere that works well for sanitizing user input for SQL injection and XSS attacks, while still allowing certain types of HTML tags?

18 Answer