News for hackers. Stuff that matters.
Re:Ask HN: Where is my server-side rendering? by ironmagma on Friday May 07, 2021 @02:27PM (#27079137)
> HTML was a language that was obvious and easy to generate

It was never so. This attitude in fact is the cause of many bugs and security vulnerabilities, most popularly XSS. There's a reason infrastructure was built around these technologies, one of which is that they are not really safe.

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.