diff options
Diffstat (limited to 'django')
| -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)) |
