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

SLVS-1600 Fix single quotation marks not formatted correctly in diff view of rule help description #5949

Closed
wants to merge 5 commits into from

Conversation

gabriela-trutan-sonarsource
Copy link
Contributor

@gabriela-trutan-sonarsource gabriela-trutan-sonarsource commented Jan 10, 2025

This is needed to prevent html escape characters (e.g. ') which end up in different sup-pieces to be split into different spans (because they won't be rendered correctly in the UI)
…orrectly in the rule help description.

This was causes by the fact that the single quotation mark was both html encoded and escaped by the XmlWriter. Which means that when & from the html escape character ' was escaped by the XmlWriter, it ended up to be amp;#39;, which couldn't be interpreted as the single quote character
…ol on the received html content and for better testability (e.g. html encoding and XML writer encoding sometimes lead to invalid characters, when XmlWriter encodes special characters from html escape characters)
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