[FIX] fix &,<,> problem for html2html report

bzr revid: dsh@tinyerp.com-20090610122734-0kq9vh870pmme4q3
This commit is contained in:
dsh (Open ERP) 2009-06-10 17:57:34 +05:30
parent 683f3fe232
commit 37060d2b3b
1 changed files with 1 additions and 1 deletions

View File

@ -513,6 +513,6 @@ class report_sxw(report_rml, preprocess.report):
create_doc = self.generators['html2html']
html = etree.tostring(create_doc(html_dom, html_parser.localcontext))
return (html.replace('&lt;', '<').replace('&gt;', '>').replace('</br>',''), report_type)
return (html.replace('&amp;','&').replace('&lt;', '<').replace('&gt;', '>').replace('</br>',''), report_type)