How to disable autoescape in django feeds?

16 views
Skip to first unread message

Alexey Moskvin

unread,
Oct 20, 2009, 2:31:22 AM10/20/09
to Django users
Hi!
I use django feed framework to organize rss feeds for my website.
I need to put some hyperlinks to feed items, but al of them are
autoescaped ( "<" is replaced with "&lt;" and so on).
Is it possible to keep tags in my feed (as I understand, I can't use
{% autoescape off %} tag in feed templates)?
Thanks.

Jaime Buelta

unread,
Oct 20, 2009, 2:36:49 AM10/20/09
to django...@googlegroups.com
Use the filter 'safe'

{{ variable | safe }}
Reply all
Reply to author
Forward
0 new messages