diff -r f178182b1305 -r af4d8f75c5db web/views/facets.py --- a/web/views/facets.py Tue Jul 07 13:25:24 2009 +0200 +++ b/web/views/facets.py Tue Jul 07 13:26:44 2009 +0200 @@ -9,7 +9,7 @@ from simplejson import dumps -from logilab.mtconverter import html_escape +from logilab.mtconverter import xml_escape from cubicweb.vregistry import objectify_selector from cubicweb.selectors import (non_final_entity, two_lines_rset, @@ -85,7 +85,7 @@ self.displayBookmarkLink(rset) w = self.w w(u'
' % ( - divid, html_escape(dumps([divid, vid, paginate, self.facetargs()])))) + divid, xml_escape(dumps([divid, vid, paginate, self.facetargs()])))) w(u'
') hiddens = {'facets': ','.join(wdg.facet.id for wdg in widgets), 'baserql': baserql} @@ -110,8 +110,8 @@ bk_add_url = self.build_url('add/Bookmark', path=bk_path, title=bk_title, __linkto=linkto) bk_base_url = self.build_url('add/Bookmark', title=bk_title, __linkto=linkto) bk_link = u'%s' % ( - html_escape(bk_base_url), - html_escape(bk_add_url), + xml_escape(bk_base_url), + xml_escape(bk_add_url), self.req._('bookmark this search')) self.w(self.bkLinkBox_template % bk_link)