1
0
mirror of https://github.com/django/django.git synced 2025-04-05 05:56:42 +00:00

Fixed -- 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

@ -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):