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

Add escape for \' #81

Merged
merged 1 commit into from Aug 30, 2022
Merged

Add escape for \' #81

merged 1 commit into from Aug 30, 2022

Conversation

joshuataylor
Copy link
Sponsor Contributor

Fixes #80

Jinja will output this:

{% set x = 1 %}
{{'\'' ~ 'foo'}}
{{'\'' ~ x ~ '\''}}
{{"\'" ~ x ~ '\''}}
{{"\'" ~ x ~ '\''}}

To this:

'foo
'1'
'1'
'1'

@mitsuhiko mitsuhiko merged commit 2e62775 into mitsuhiko:main Aug 30, 2022
@mitsuhiko
Copy link
Owner

Thank you!

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.

Escaping doesn't work as expected
2 participants