commit | 449167d991baeac11f6985166c8b21b83737ac87 | [log] [tgz] |
---|---|---|
author | Armin Ronacher <armin.ronacher@active-4.com> | Fri Apr 11 17:55:05 2008 +0200 |
committer | Armin Ronacher <armin.ronacher@active-4.com> | Fri Apr 11 17:55:05 2008 +0200 |
tree | 7e8912f4375afe8b3035f7fe04fa6bcb80ec19d2 | |
parent | d4c64f76c04206dd4e4bc48242080d3738e35758 [diff] [blame] |
fixed a bug in the compiler --HG-- branch : trunk
diff --git a/jinja2/utils.py b/jinja2/utils.py index 23a3b15..4ee245d 100644 --- a/jinja2/utils.py +++ b/jinja2/utils.py
@@ -14,10 +14,8 @@ """HTML escape an object.""" if hasattr(obj, '__html__'): return obj.__html__() - s = unicode(obj) \ + return unicode(obj) \ .replace('&', '&') \ .replace('>', '>') \ - .replace('<', '<') - if attribute: - s = s.replace('"', '"') - return s + .replace('<', '<') \ + .replace('"', '"')