StevenClontz / checkit-svelte

https://checkit.clontz.org
MIT License
1 stars 1 forks source link

FIx parse math to process all HTML/XML entities #19

Open StevenClontz opened 3 years ago

StevenClontz commented 3 years ago

https://github.com/StevenClontz/checkit-svelte/blob/3297bbe865fade78bad1c96f671d4243c8663444/src/components/Exercise.svelte#L19

This doesn't handle e.g. <, >.

StevenClontz commented 3 years ago

Looks like I want https://github.com/mathiasbynens/he

StevenClontz commented 3 years ago

Or since we're just dealing with XML entities, https://stackoverflow.com/a/27979933