-
Notifications
You must be signed in to change notification settings - Fork 991
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
Contents of code blocks are not escaped #1581
Comments
Ah damn, it must have been forgotten in the codeblock rewrite :( |
Can you post the reproduction in a code block? Ironically GH escapes everything |
I don't have it currently, but it was a MIT license with an email address in the copyright line inside < and > |
It's very odd, both class and inline highlighters should definitely escape the HTML, it does so in my tests. When you have time, I'd love a full repro |
Added a minimal repro there, was produced by using the same version of Zola and
|
Bug Report
Environment
Zola version: 0.14.0
Expected Behavior
When using a code block in a page that includes special characters (such as
</>
), these should be HTML escaped to display properly in a browser.Current Behavior
These characters are not escaped and are directly copied to the HTML output.
Step to reproduce
When opening in a browser, the page will say "Hello world!", when it should say "Hello world!"
I'm happy to submit a PR if I can have directions as to roughly where this may be occurring. Zola is a really nice project (dare I say my new favourite static site generator) and I am looking forwards to using it regularly!
The text was updated successfully, but these errors were encountered: