diff -r f178182b1305 -r af4d8f75c5db web/htmlwidgets.py --- a/web/htmlwidgets.py Tue Jul 07 13:25:24 2009 +0200 +++ b/web/htmlwidgets.py Tue Jul 07 13:26:44 2009 +0200 @@ -9,7 +9,7 @@ :license: GNU Lesser General Public License, v2.1 - http://www.gnu.org/licenses """ -from logilab.mtconverter import html_escape +from logilab.mtconverter import xml_escape from cubicweb.utils import UStringIO from cubicweb.common.uilib import toggle_action @@ -81,7 +81,7 @@ self.w(u'
' % self._class) if self.title: if self.escape: - title = '%s' % html_escape(self.title) + title = '%s' % xml_escape(self.title) else: title = '%s' % self.title self.w(u'
%s
' % (self.title_class, title)) @@ -204,7 +204,7 @@ def __init__(self, href, label, _class='', title='', ident='', escape=False): self.href = href if escape: - self.label = html_escape(label) + self.label = xml_escape(label) else: self.label = label self._class = _class or '' @@ -213,7 +213,7 @@ def _render(self): link = u'%s' % ( - html_escape(self.href), html_escape(self.title), self.label) + xml_escape(self.href), xml_escape(self.title), self.label) if self.ident: self.w(u'
  • %s
  • \n' % (self.ident, self._class, link)) else: