News for hackers. Stuff that matters.
Re:Ask HN: Where is my server-side rendering? by krapp on Friday May 07, 2021 @02:37PM (#27079263)
There's nothing unsafe about HTML as a language. You'll never get an XSS issue from pure HTML. All of those "bugs" and "security vulnerabilities" come from mis-configured frameworks not properly sanitizing external data, or from (mostly PHP) ad-hoc code written by people unaware of the issue. But even then, any mainstream templating language escapes by default.
Re:Ask HN: Where is my server-side rendering? by ironmagma on Friday May 07, 2021 @02:41PM (#27079335)
The parent comment was specifically about generating HTML, which by definition is not pure. And the templating languages are part of the complexity people are talking about.