diff options
Diffstat (limited to 'mako/filters.py')
-rw-r--r-- | mako/filters.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/mako/filters.py b/mako/filters.py index a5e414e..30c792f 100644 --- a/mako/filters.py +++ b/mako/filters.py @@ -27,8 +27,7 @@ def legacy_html_escape(string): try: import markupsafe - def html_escape(string): - return markupsafe.escape(string) + html_escape = markupsafe.escape except ImportError: html_escape = legacy_html_escape |