diff --git a/addons/website/models/website_snippet_filter.py b/addons/website/models/website_snippet_filter.py index a856a2a7a8a..614369b0ff4 100644 --- a/addons/website/models/website_snippet_filter.py +++ b/addons/website/models/website_snippet_filter.py @@ -75,7 +75,7 @@ class WebsiteSnippetFilter(models.Model): records=records, is_sample=is_sample, )) - return [etree.tostring(el, encoding='unicode') for el in html.fromstring('%s' % str(content)).getchildren()] + return [etree.tostring(el, encoding='unicode', method='html') for el in html.fromstring('%s' % str(content)).getchildren()] def _prepare_values(self, limit=None, search_domain=None): """Gets the data and returns it the right format for render."""