Opened 16 years ago

Closed 16 years ago

#10409 closed (invalid)

join filter escapes data

Reported by: Grigoriy Petukhov Owned by: nobody
Component: Template system Version: dev
Severity: Keywords: filter, join, escaping, safe
Cc: Triage Stage: Unreviewed
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no

Description

django rev. 9962

In [11]: Template('{{ messages|join:" "|safe }}').render(Context({'messages': ['<a>', '<b>']}))
Out[11]: u'&lt;a&gt; &lt;b&gt;'

Is it correct behaviour?

Change History (1)

comment:1 by Karen Tracey, 16 years ago

Resolution: invalid
Status: newclosed

django-users would have been a better place for this, as it is a question. If you are not sure it is a bug, ask on the list first. The behavior is correct, see #9700. Also, you may want to look at the safeseq filter added for #9701.

Note: See TracTickets for help on using tickets.
Back to Top