Ben Hoyt personal blog

Don’t try to sanitize input – escape output

Why you should escape output correctly, but generally not sanitize user input.
Points
297
HN comments
487
Submissions
3
Cited by
4 commenters

Software EngineeringSecurity & Privacy2020

On Hacker News

SubmittedTitle on HNPointsComments
Feb 27, 2020Don’t try to sanitize input – escape output by benhoyt297280
Jan 13, 2022Don’t try to sanitize input, escape output (2020) by maple3142128128
Jul 10, 2024Don’t try to sanitize input, escape output (2020) by benhoyt6879

Cited in comments

Linked from 5 Hacker News comments by 4 different people, from Sep 2020 to Mar 2025.

Most recent:

Search every comment that links here →

More from Ben Hoyt

All 21 posts →

Related posts from the same era