a = ‘abc’
Html special characters in the show when the article.
> {{ a | escape }}
'abc'
When I show that I want to unescape.
> {{ a | escape | safe }}
TemplateSyntaxError: Invalid filter: 'safe'
An error occurs.
> from django.utils.safestring import mark_safe
> a = mark_safe(a)
This error also occurs.
Django does not make the current is not applied to the safe?
Do you have any ideas on how to unescape?
(I is being developed in google-appengine.)
It’s not completely clear what you are asking, but you can disable Django’s automatic escaping with the
autoescapetemplate tag. For example:mark_safealso works: