News for hackers. Stuff that matters.
Re:Don’t try to sanitize input – escape output by megous on Thursday February 27, 2020 @10:00AM (#22433804)
It's interesting that single page apps actullay have a benefit here. If you generate DOM with code, you can just assign anything you like to el.textContent and you'll not need to muck around with sanitization libraries and edge cases.

Basically the same principle like using parametrized SQL queries.

There are no comments on this comment yet.