Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Convert   to regular spaces in decodeHTML #804

Closed
wants to merge 1 commit into from

Conversation

chkn
Copy link
Collaborator

@chkn chkn commented Nov 8, 2023

Fixes https://github.com/glideapps/glide/issues/23589

When pasting text/html content, we generate a DOM fragment and then decodeHTML walks that DOM, reading out the text values of cells. During this process, regular space characters are converted into non-breaking space Unicode characters, which can cause subtle and annoying issues if, for instance the pasted text is re-copied out of GDG.

This PR modifies decodeHTML to normalize the strings it reads from the DOM by replacing the non-breaking space characters with regular spaces.

@chkn chkn requested a review from jassmith November 8, 2023 13:02
@marcel-at-glide
Copy link

Curious to know when this fix will go out.

@rwdaigle
Copy link

@jassmith @chkn any updates here?

@jassmith
Copy link
Contributor

This should be fixed already in 5.3.1

@jassmith jassmith closed this Nov 26, 2023
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.

4 participants