4 ms·
> post ES6 [...] has some really good parts, like injection-proof template literal semantics. What is injection-proof template literal? Any link about that? Th
by conaclos 4y ago
> post ES6 [...] has some really good parts, like injection-proof template literal semantics.
What is injection-proof template literal? Any link about that? Thanks :)
- matklad 4y agohttps://julialang.org/blog/2013/04/put-this-in-your-pipe/#do-nothing_backticks https://julialang.org/blog/2013/04/put-this-in-your-pipe/#do... for what is this abstractly and why that is needed. https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Template_literals#tagged_templates https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe... for specific implementation in JS. Compare with f-strings in Python, which are superficially similar, but can’t be used to, eg, construct SQL or HTML not prone to injection attacks.