Hacker News new | ask | show | jobs
by planck 6149 days ago
Assume all data entered by users is malicious and encode it properly on display. That's really all there is to it.
1 comments

Amen to that.

Everyone overcomplicated the issue, it's not a difficult issue to solve: whenever untrusted data is to be displayed to a user, escape it. Problem solved.