justin-schroeder / arrow-js

Reactivity without the framework
https://arrow-js.com
MIT License
2.32k stars 50 forks source link

Fixes calculator special symbols render #73

Closed fasiha closed 1 year ago

fasiha commented 1 year ago

The calculator demo renders raw entity codes for the multiply and divide symbols in the subtitle (tested in Firefox and Safari macOS):

Says 3 × 2 &#×f7; 3

By using JavaScript escape codes, we can avoid this:

Says 5 × 3 ÷ 2

Instead of JavaScript escapes, we could enter the raw UTF-8 encoded symbols directly into the JavaScript file, happy to change that if you prefer.

vercel[bot] commented 1 year ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
arrow-js ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 26, 2023 2:47am
justin-schroeder commented 1 year ago

perfect! thanks!

This looks like a regression from the last update which improved output security by using better escaping.