# HG changeset patch # User Marcin Kuzminski # Date 2010-09-02 18:07:05 # Node ID 0668919c307c0aa9de7f4befe189aad3783c6fbe # Parent e5157e2a530e3c42298a229ccdcd9387b4822113 fixed escaping in tooltip 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): """