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 autoescape template tag #142

Open
ellmetha opened this issue Dec 30, 2023 · 0 comments
Open

Add autoescape template tag #142

ellmetha opened this issue Dec 30, 2023 · 0 comments

Comments

@ellmetha
Copy link
Member

Description

Let's introduce an autoescape template tag that will allow to control whether auto-escaping is enabled or disabled within a specific template block. This template tag would work as follows:

{% autoescape on %}
<!-- Auto-escaping is enabled -->
{% endautoescape %}

{% autoescape off %}
<!-- Auto-escaping is disabled -->
{% endautoescape %}

Coupled with the use of the escape template filter, this new template tag would allow to better accommodate situations where it's required to manually control what gets escaped versus what's not.

@ellmetha ellmetha added this to the v0.5.0 milestone Dec 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant