diff --git a/odoo/tools/mail.py b/odoo/tools/mail.py index 1b223b233f5..328fa81465c 100644 --- a/odoo/tools/mail.py +++ b/odoo/tools/mail.py @@ -223,6 +223,8 @@ def html_sanitize(src, silent=True, sanitize_tags=True, sanitize_attributes=Fals cleaned = cleaned.replace('%7C', '|') cleaned = cleaned.replace('<%', '<%') cleaned = cleaned.replace('%>', '%>') + # html considerations so real html content match database value + cleaned.replace(u'\xa0', ' ') except etree.ParserError, e: if 'empty' in str(e): return ""