#9700: join filter can't be used with 'safe' filter anymore
-----------------------------+----------------------------------------------
Reporter: orzel | Owner: nobody
Status: new | Milestone:
Component: Template system | Version: SVN
Keywords: join | Stage: Unreviewed
Has_patch: 0 |
-----------------------------+----------------------------------------------
usecase: lists = [ '<a href="asdfa">asdfasd</a>", '<a
href="asdfa">asdfasd</a>",
'<a href="asdfa">asdfasd</a>"], is sent to a template, which does
{{lists|join:", "|safe}}
Until recently the output was a list of links on the webpage. Not anymore,
now the html is escaped and "<a href..." is displayed on the webpage. The
commit that broke it is r9442.
I dont understand it enough to guess if this new behaviour is expected, or
a bug/regression.
(of course, in this example, i can do the join in python before calling
the template).
--
Ticket URL: <http://code.djangoproject.com/ticket/9700>
Django <http://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 post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---