Skip to content

Implement HTML character reference unescaping#131

Open
iainh wants to merge 1 commit intokristoff-it:mainfrom
iainh:character_reference_unescaping
Open

Implement HTML character reference unescaping#131
iainh wants to merge 1 commit intokristoff-it:mainfrom
iainh:character_reference_unescaping

Conversation

@iainh
Copy link
Copy Markdown

@iainh iainh commented Dec 28, 2025

Implement Attr.Value.unescape() per WHATWG HTML spec §13.2.5.73-76:

  • Named references: & → &,   → U+00A0, etc. (2,125 entities)
  • Decimal numeric:   → U+00A0
  • Hexadecimal numeric:   → U+00A0
  • Special cases: null/surrogates → U+FFFD, Windows-1252 C1 mapping

Implement Attr.Value.unescape() per WHATWG HTML spec §13.2.5.73-76:
- Named references: & → &,   → U+00A0, etc. (2,125 entities)
- Decimal numeric:   → U+00A0
- Hexadecimal numeric:   → U+00A0
- Special cases: null/surrogates → U+FFFD, Windows-1252 C1 mapping
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant