vanjs-org / van

🍦 VanJS: World's smallest reactive UI framework. Incredibly Powerful, Insanely Small - Everyone can build a useful UI app in an hour.
https://vanjs.org
MIT License
3.77k stars 87 forks source link

Script children should not be escaped #283

Closed eevleevs closed 6 months ago

eevleevs commented 6 months ago
van.html(van.tags.script('const a = () => 1'))

becomes

<!DOCTYPE html><html><script>const a = () =&gt; 1</script></html>

and does not work

Tao-VanJS commented 6 months ago

Thanks @eevleevs for reporting the bug!

After testing, the problem only appears in the van-plate mode of Mini-Van. It doesn't appear in VanJS or mini-van mode of Mini-Van.

I will consider getting it fixed in the next release of Mini-Van.

eevleevs commented 6 months ago

Thank you, confirmed I was working on van-plate, sorry for forgetting to mention.

Tao-VanJS commented 6 months ago

This bug should be fixed in Mini-Van 0.5.6. Thanks again for reporting!

Tao-VanJS commented 6 months ago

@all-contributors please add @eevleevs for bug

allcontributors[bot] commented 6 months ago

@Tao-VanJS

I've put up a pull request to add @eevleevs! :tada:

eevleevs commented 6 months ago

Great, confirmed working. Thanks!