5 ms·
One big difference and why I've been experimenting with JSX[1] is that in that example, if the `text` comes from an untrusted source it can lead to XSS, which T
by franciscop 2y ago
One big difference and why I've been experimenting with JSX[1] is that in that example, if the `text` comes from an untrusted source it can lead to XSS, which TinyJS prevents (I checked)!
[1] https://x.com/FPresencia/status/1838176000267452704 https://x.com/FPresencia/status/1838176000267452704
- wruza 2y agoEven if it comes from a trusted source, you usually want a good distinction between html interpolation and just-text chunks.