From f780ce61765558110bbfe2adc2b73803e1f76b41 Mon Sep 17 00:00:00 2001 From: Gary Wilson Jr Date: Mon, 28 Jan 2008 02:30:53 +0000 Subject: [PATCH] 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 --- django/template/defaultfilters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/django/template/defaultfilters.py b/django/template/defaultfilters.py index ddd48146f28..d3400baac8f 100644 --- a/django/template/defaultfilters.py +++ b/django/template/defaultfilters.py @@ -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):