# HG changeset patch # User Graziella Toutoungis # Date 1241530743 -7200 # Node ID 39860636e1848c9e36b1dae195ec2ee75430f540 # Parent 2406667c90d6e8cb47092dcae905378dfb10670f use xml_escape diff -r 2406667c90d6 -r 39860636e184 web/views/baseviews.py --- a/web/views/baseviews.py Tue May 05 09:59:01 2009 +0200 +++ b/web/views/baseviews.py Tue May 05 15:39:03 2009 +0200 @@ -16,7 +16,7 @@ from rql import nodes -from logilab.mtconverter import TransformError, html_escape +from logilab.mtconverter import TransformError, html_escape, xml_escape from cubicweb import NoSelectableObject from cubicweb.selectors import yes, empty_rset @@ -338,7 +338,7 @@ highlighted = '%s' % searched for attr in entity.e_schema.indexable_attributes(): try: - value = html_escape(entity.printable_value(attr, format='text/plain').lower()) + value = xml_escape(entity.printable_value(attr, format='text/plain').lower()) except TransformError, ex: continue except: