A HTML escaping and unescaping library for MoonBit.
Escaping:
assert_eq(escape_quoted("\"'&<>"), ""'&<>")
assert_eq(escape_safe("<script>alert('xss')</script>"), "<script>alert('xss')</script>")Unescaping:
assert_eq(unescape("<div>hello&world</div>"), "<div>hello&world</div>")MIT License