#34577: New template filter `escapeseq`
-------------------------------------------+------------------------
Reporter: Natalia Bidart | Owner: nobody
Type: New feature | Status: new
Component: Template system | Version: dev
Severity: Normal | Keywords:
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------------+------------------------
Following #34574, and after some conversations within the security team,
it seems appropriate to provide a new template filter `escapeseq` which
would be to `escape` what `safeseq` is to `safe`. An example of usage
would be:
{{{
{{ some_list|escapeseq|join:"," }}
}}}
where each item of `some_list` is escaped before applying the join
operation. This usage makes sense in a context where `autoescape` is
`off`.
--
Ticket URL: <https://code.djangoproject.com/ticket/34577>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/django-updates/010701882fb2e1d0-55185cf7-eb6f-4f39-8473-4aca13d928a8-000000%40eu-central-1.amazonses.com.