diff -r ea1a44e4ad62 -r caad2367d940 web/views/formrenderers.py --- a/web/views/formrenderers.py Wed Jul 15 09:45:13 2009 +0200 +++ b/web/views/formrenderers.py Thu Jul 16 13:30:13 2009 +0200 @@ -8,7 +8,7 @@ __docformat__ = "restructuredtext en" from logilab.common import dictattr -from logilab.mtconverter import html_escape +from logilab.mtconverter import xml_escape from simplejson import dumps @@ -144,17 +144,17 @@ else: action = form.action tag = ('
' def display_field(self, form, field): @@ -298,7 +298,7 @@ entity = form.edited_entity values = form.form_previous_values qeid = eid_param('eid', entity.eid) - cbsetstate = "setCheckboxesState2('eid', %s, 'checked')" % html_escape(dumps(entity.eid)) + cbsetstate = "setCheckboxesState2('eid', %s, 'checked')" % xml_escape(dumps(entity.eid)) w(u'' % (entity.row % 2 and u'even' or u'odd')) # XXX turn this into a widget used on the eid field w(u'%s' % checkbox('eid', entity.eid, checked=qeid in values)) @@ -411,7 +411,7 @@ w(u'[x]' % (_('cancel this insert'), row[2])) w(u'%s' - % (row[1], row[4], html_escape(row[5]))) + % (row[1], row[4], xml_escape(row[5]))) w(u'') w(u'') w(u'' % eid) @@ -419,7 +419,7 @@ w(u'%s' % _('add relation')) w(u'