Re:Don’t try to sanitize input, escape output (2020)
by gkoberger on Thursday January 13, 2022 @11:48AM
(#29923003)
No they're not. They're using the word "output" to mean "back into the HTML".
"So the better approach is to store whatever name the user enters verbatim, and then have the template system HTML-escape when outputting HTML, or properly escape JSON when outputting JSON and JavaScript."
Re:Don’t try to sanitize input, escape output (2020)
by kam on Thursday January 13, 2022 @11:52AM
(#29923071)
The sentence immediately after that is
"And of course use your SQL engine’s parameterized query features so it properly escapes variables when building SQL"
"So the better approach is to store whatever name the user enters verbatim, and then have the template system HTML-escape when outputting HTML, or properly escape JSON when outputting JSON and JavaScript."