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

Fix linkify with character entities (#501) #692

Merged
merged 1 commit into from
Jan 12, 2023
Merged

Fix linkify with character entities (#501) #692

merged 1 commit into from
Jan 12, 2023

Conversation

willkg
Copy link
Member

@willkg willkg commented Jan 11, 2023

This fixes problems where serializing linkify output causes character entities in Characters tokens to be escaped.

Fixes #501
Fixes #670

This fixes problems where serializing linkify output causes character
entities in Characters tokens to be escaped.
@willkg willkg requested a review from g-k January 11, 2023 18:48
@willkg
Copy link
Member Author

willkg commented Jan 11, 2023

@g-k This seems like the right thing to do. It copies some of the bits from the Cleaner over minus the sanitizing code. Does this raise any eyebrows for you?

Copy link
Collaborator

@g-k g-k left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems reasonable and the solution here makes sense

@willkg willkg merged commit 4971efa into mozilla:main Jan 12, 2023
@willkg
Copy link
Member Author

willkg commented Jan 12, 2023

Thank you!

@willkg willkg deleted the 501-linkify-nbsp branch January 12, 2023 16:00
stefanw added a commit to okfde/froide that referenced this pull request May 23, 2023
bleach 6 fixes this in mozilla/bleach#692

Adding some types so SafeString's are easier to identify
stefanw added a commit to okfde/froide that referenced this pull request May 24, 2023
bleach 6 fixes this in mozilla/bleach#692

Adding some types so SafeString's are easier to identify
github-merge-queue bot pushed a commit to okfde/froide that referenced this pull request May 24, 2023
bleach 6 fixes this in mozilla/bleach#692

Adding some types so SafeString's are easier to identify
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.

bug: Linkify incorrectly parses query params starting with "&para" nbsp is converted to \xa0 in linkify
2 participants