small fix
authorLaure Bourgois <Laure.Bourgois@logilab.fr>
Wed, 18 Feb 2009 16:57:51 +0100
changeset 814 c0bee055c594
parent 746 1babfaa026bb
child 815 ec7460e13eee
small fix
web/views/owl.py
--- a/web/views/owl.py	Wed Feb 18 00:46:10 2009 +0100
+++ b/web/views/owl.py	Wed Feb 18 16:57:51 2009 +0100
@@ -1,4 +1,4 @@
-from logilab.mtconverter import TransformError, html_escape
+from logilab.mtconverter import TransformError, xml_escape
 
 from cubicweb.common.view import StartupView
 from cubicweb.common.view import EntityView
@@ -193,7 +193,7 @@
             try:
                 attr = entity.printable_value(aname, format='text/plain')
                 if attr:
-                    self.w(u'<%s>%s</%s>' % (aname, html_escape(attr), aname))
+                    self.w(u'<%s>%s</%s>' % (aname, xml_escape(attr), aname))
             except TransformError:
                 pass
         self.w(u'<!--relations -->')