Join Slack
Communities
Powered by
yeah, unescaping only. I had wrongly assumed that ...
# squarelibraries
j
james
02/10/2022, 12:33 AM
yeah, unescaping only. I had wrongly assumed that it would be a big task but it seems those four strings are the only cases I need to handle for my use case
e
ephemient
02/10/2022, 3:06 AM
if you ever have to handle all HTML entities in general, these are all the named entities:
https://html.spec.whatwg.org/multipage/named-characters.html
as well as
&#NNN;
and
&#xNNN;
decimal and hexadecimal numeric character references. browsers leave unknown entities untouched.
🙏 1
Open in Slack
Previous
Next