Fixed #6471 -- Fixed stringfilter decoration of `force_escape` filter.

git-svn-id: http://code.djangoproject.com/svn/django/trunk@7033 bcc190cf-cafb-0310-a4f2-bffc1f526a37
This commit is contained in:
Gary Wilson Jr 2008-01-28 02:30:53 +00:00
parent 80f5cafbc4
commit f780ce6176
1 changed files with 1 additions and 1 deletions

View File

@ -343,7 +343,7 @@ def force_escape(value):
"""
from django.utils.html import escape
return mark_safe(escape(value))
escape = stringfilter(escape)
force_escape = stringfilter(force_escape)
force_escape.is_safe = True
def linebreaks(value, autoescape=None):