▲ | pphysch 8 days ago | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
lot_of_html isn't a string literal with dangerous elements smooshed into the trusted scaffolding like an f-string would do. It's a template instance that still needs to be safely processed into a renderable string, e.g. by escaping whatever `evil` evaluates to and even validating the final HTML syntax. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▲ | kazinator 8 days ago | parent [-] | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I can easily end up unsafely processed. It's a footgun. And why would you be validating HTML on the fly, when it's coming from your program, not as an input into it. Even if you can do it at program startup once for each template, it's still pointless overhead. The whole thing is wrongheaded; exactly the kind of stove-pipe people end up inventing when they don't have metaprogramming. | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|