Skip to content

Fix XML escaping for invalid Unicode characters - #2

Open
rolandboon wants to merge 1 commit into
litejs:mainfrom
rolandboon:fix/invalid-character-stripping
Open

rolandboon wants to merge 1 commit into
litejs:mainfrom
rolandboon:fix/invalid-character-stripping

Conversation

@rolandboon

Copy link
Copy Markdown
Contributor

Lone surrogates and U+FFFE/U+FFFF (non-characters) are not valid XML 1.0 characters. This change strips them during serialization so arbitrary input cannot produce a corrupt workbook.

Lone surrogates and U+FFFE/U+FFFF (non-characters) are not valid XML 1.0 characters. Strip them during serialization so arbitrary input cannot produce a corrupt workbook.
@rolandboon rolandboon mentioned this pull request Oct 2, 2026
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