deno_std
deno_std copied to clipboard
feat(html): add `normalize` function for HTML entities (#4523)
Fixes #4523
Various bikeshedding things:
- Given its dual use for XML, should the top-level dir have its name changed from
html? If so, to what?xmlsuffers the same issue but in reversehtml_and_xmlis pretty grossmarkupseems overly vaguesgml_likemight be technically correct, but would the average web developer think to look there?
- Is it worth exporting
escapeAllCharsAsHex? Could be useful for users wanting finer-grained control than the 2 normalization forms, but it's a very simple function to replicate - Is the name
NormalizationFormOK or is it too confusing with Unicode normalization forms (NFC, NFD, etc?)