|
|
|
|
|
by spankalee
243 days ago
|
|
I'll be very excited to use this in Lit when it hits baseline. While lit-html templates are already XSS-hardened because template strings aren't forgeable, we do have utilities like `unsafeHTML()` that let you treat untrusted strings as HTML, which are currently... unsafe. With `Element.setHTML()` we can make a `safeHTML()` directive and let the developer specify sanitizer options too. |
|