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 SyntaxHighlighter::HTML to escape identifier values #13212

Conversation

straight-shoota
Copy link
Member

Identifiers can include special characters (namely < and >) and thus must be escaped for use in HTML.

This caused CI failures with updated docker build images (https://github.com/crystal-lang/distribution-scripts/pull/231/files) on Ubuntu 22.04 with libxml2 2.9.13.
https://app.circleci.com/pipelines/github/crystal-lang/crystal/11529/workflows/7fbbce79-346a-4cc3-967a-012367f78779/jobs/75252

@beta-ziliani beta-ziliani added this to the 1.8.0 milestone Mar 22, 2023
@straight-shoota straight-shoota merged commit 2c8e606 into crystal-lang:master Mar 22, 2023
@straight-shoota straight-shoota deleted the fix/html-highlighter-escape branch March 22, 2023 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants