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

Avoid HTML characters to be encoded when unwrapping mention tags #6850

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

acelaya
Copy link
Contributor

@acelaya acelaya commented Feb 26, 2025

Closes #6849

Make sure HTML special characters in the annotation text are not HTML-encoded as a side effect of unwrapping mention tags.

This PR is motivated by #6849, where the ability to quote text via > is broken, as it was being converted to <

Copy link

codecov bot commented Feb 26, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.42%. Comparing base (134f389) to head (7f8cba1).

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6850   +/-   ##
=======================================
  Coverage   99.42%   99.42%           
=======================================
  Files         272      272           
  Lines       10451    10451           
  Branches     2510     2510           
=======================================
  Hits        10391    10391           
  Misses         60       60           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Comment on lines +100 to +106
{
text: `> Quote
Hello @jane.doe.`,
authority: 'example.com',
textWithTags: `> Quote
Hello ${mentionTag('jane.doe', 'example.com')}.`,
},
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This test does not pass in main

@acelaya acelaya requested a review from robertknight February 26, 2025 10:06
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.

Pressing '>' in the Keyboard Displays '>' when Annotating Webpages loaded in Via
1 participant