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

Treat nunjucks variables as safe by default #907

Closed
damithc opened this issue Jun 27, 2019 · 0 comments · Fixed by #1239
Closed

Treat nunjucks variables as safe by default #907

damithc opened this issue Jun 27, 2019 · 0 comments · Fixed by #1239

Comments

@damithc
Copy link
Contributor

damithc commented Jun 27, 2019

Current: if a variable has html syntax in it e.g., <span id="x"><br/></span>, it needs to be used with the safe filter e.g., {{ x | safe }}.

Suggestion: set default mode to safe so that the safe filter is not required

Relevant nunjucks docs:
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant