From 88e1cb7fdd0c2f6ba16d87f0744e125a77ce332c Mon Sep 17 00:00:00 2001 From: Armin Ronacher Date: Mon, 8 Sep 2008 23:55:32 +0200 Subject: [PATCH] Fixed a documentation bug. --HG-- branch : trunk --- jinja2/utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jinja2/utils.py b/jinja2/utils.py index 1ed6536..f0ae6a9 100644 --- a/jinja2/utils.py +++ b/jinja2/utils.py @@ -286,8 +286,8 @@ class Markup(unicode): it escapes arguments passed and always returns `Markup`. The `escape` function returns markup objects so that double escaping can't - happen. If you want to use autoescaping in Jinja just set the finalizer - of the environment to `escape`. + happen. If you want to use autoescaping in Jinja just enable the + autoescaping feature in the environment. The constructor of the :class:`Markup` class can be used for three different things: When passed an unicode object it's assumed to be safe, -- 2.26.2