diff --git a/pylons_app/lib/helpers.py b/pylons_app/lib/helpers.py --- a/pylons_app/lib/helpers.py +++ b/pylons_app/lib/helpers.py @@ -75,8 +75,8 @@ class _ToolTip(object): @param tooltip_title: """ - return literal(wrap_paragraphs(tooltip_title, trim_at)\ - .replace('\n', '
')) + return wrap_paragraphs(escape(tooltip_title), trim_at)\ + .replace('\n', '
') def activate(self): """