changeset 444:0668919c307c

fixed escaping in tooltip
author Marcin Kuzminski <marcin@python-works.com>
date Thu, 02 Sep 2010 20:07:05 +0200
parents e5157e2a530e
children 946d8a680a1d
files pylons_app/lib/helpers.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/pylons_app/lib/helpers.py	Wed Sep 01 23:38:03 2010 +0200
+++ b/pylons_app/lib/helpers.py	Thu Sep 02 20:07:05 2010 +0200
@@ -75,8 +75,8 @@
         @param tooltip_title:
         """
         
-        return literal(wrap_paragraphs(tooltip_title, trim_at)\
-                       .replace('\n', '<br/>')) 
+        return wrap_paragraphs(escape(tooltip_title), trim_at)\
+                       .replace('\n', '<br/>')
     
     def activate(self):
         """