web/views/basecontrollers.py
branchstable
changeset 2312 af4d8f75c5db
parent 2255 c346af0727ca
child 2330 8c70ca715fe9
--- a/web/views/basecontrollers.py	Tue Jul 07 13:25:24 2009 +0200
+++ b/web/views/basecontrollers.py	Tue Jul 07 13:26:44 2009 +0200
@@ -15,7 +15,7 @@
 import simplejson
 
 from logilab.common.decorators import cached
-from logilab.mtconverter import html_escape
+from logilab.mtconverter import xml_escape
 
 from cubicweb import NoSelectableObject, ValidationError, ObjectNotFound, typed_eid
 from cubicweb.utils import strptime
@@ -411,7 +411,7 @@
             if rset:
                 output = self.view(vid, rset)
                 if vid == 'textoutofcontext':
-                    output = html_escape(output)
+                    output = xml_escape(output)
             else:
                 output = default
             return (success, args, output)