Re: [Django] #34578: Template filter `join` should not escape the joining string if `autoescape` is `off` (was: Template filter `join` should not escape the joining string even if `autoescape` is `off`)

1 view
Skip to first unread message

Django

unread,
May 18, 2023, 11:59:49 PM5/18/23
to django-...@googlegroups.com
#34578: Template filter `join` should not escape the joining string if `autoescape`
is `off`
---------------------------------+------------------------------------
Reporter: Natalia Bidart | Owner: nobody
Type: Bug | Status: new
Component: Template system | Version: 4.2
Severity: Normal | Resolution:
Keywords: | Triage Stage: Accepted
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 1 | UI/UX: 0
---------------------------------+------------------------------------
Changes (by Mariusz Felisiak):

* easy: 0 => 1
* stage: Unreviewed => Accepted


Comment:

Off-topic: As far as I'm aware it's easier to follow the expected output
in assertions instead of a series of function calls, e.g.
{{{#!python
self.assertEqual(output, "<p>Hello World!</p><br/>beta &
me<br/><script>Hi!</script>")
}}}

--
Ticket URL: <https://code.djangoproject.com/ticket/34578#comment:1>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Reply all
Reply to author
Forward
0 new messages