Kaydet (Commit) f780ce61 authored tarafından Gary Wilson Jr's avatar Gary Wilson Jr

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
üst 80f5cafb
......@@ -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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment