Opened 17 years ago
Closed 17 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'<a> <b>'
Is it correct behaviour?
Note:
See TracTickets
for help on using tickets.
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
safeseqfilter added for #9701.