From: Armin Ronacher Date: Mon, 8 Sep 2008 21:55:32 +0000 (+0200) Subject: Fixed a documentation bug. X-Git-Tag: 2.1~39 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=88e1cb7fdd0c2f6ba16d87f0744e125a77ce332c;p=jinja2.git Fixed a documentation bug. --HG-- branch : trunk --- 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,