logoalt Hacker News

HWR_14yesterday at 5:30 PM0 repliesview on HN

That's why I only allow user input of alphanumeric ascii characters. No need to worry about sanitation then, and you can just remove all the characters that don't match.

(It's a joke, but it is also 100% XSS, SQL injection, etc. safe and future proof)