diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2011-12-24 20:45:58 +0000 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2011-12-24 20:45:58 +0000 |
| commit | 4c445fdfaa7c315ed2fcdcf4c00de2c3cdcfcbb6 (patch) | |
| tree | 7c30d67c134689a7e4a41b80bd81176733c98d43 /django/template | |
| parent | d72c0bdc46a97c53d5e60b7e373d2f8e24673bb1 (diff) | |
Fixed #17110 -- Mentionned that the {% filter %} tag doesn't support the 'safe' and 'escape' filters. Thanks benspaulding.
git-svn-id: http://code.djangoproject.com/svn/django/trunk@17271 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/template')
| -rw-r--r-- | django/template/defaulttags.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/django/template/defaulttags.py b/django/template/defaulttags.py index 2d4a180e75..701515a66d 100644 --- a/django/template/defaulttags.py +++ b/django/template/defaulttags.py @@ -617,6 +617,10 @@ def do_filter(parser, token): {% filter force_escape|lower %} This text will be HTML-escaped, and will appear in lowercase. {% endfilter %} + + Note that the ``escape`` and ``safe`` filters are not acceptable arguments. + Instead, use the ``autoescape`` tag to manage autoescaping for blocks of + template code. """ _, rest = token.contents.split(None, 1) filter_expr = parser.compile_filter("var|%s" % (rest)) |
