Skip to content

Conversation

@rbuckton
Copy link
Contributor

We were incorrectly passing the result of decoding HTML entities through String.fromCharCode which can't handle UTF16 code points higher than 0xFFFF. This switches to using the same logic in the scanner we use for extended unicode escapes.

Fixes #35732

@rbuckton
Copy link
Contributor Author

CC: @sandersn, @weswigham since suggestions aren't working

@rbuckton rbuckton merged commit 2eb60c2 into master Dec 18, 2019
@rbuckton rbuckton deleted the fix35732 branch December 18, 2019 01:32
@microsoft microsoft locked as resolved and limited conversation to collaborators Oct 21, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

some HTML entities in JSX emits incorrect unicode literal

3 participants