From 8bd0ebbea25649cb6c0aec2b9e786b81ec05c035 Mon Sep 17 00:00:00 2001 From: Nicolas Duhamel Date: Tue, 9 Nov 2010 12:00:47 +0100 Subject: [PATCH] do not strip cdata --- weboob/tools/parsers/lxmlparser.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weboob/tools/parsers/lxmlparser.py b/weboob/tools/parsers/lxmlparser.py index 34ffaee6..484395cf 100644 --- a/weboob/tools/parsers/lxmlparser.py +++ b/weboob/tools/parsers/lxmlparser.py @@ -76,7 +76,7 @@ class LxmlHtmlParser(IParser): if encoding is None: parser = None else: - parser = lxml.html.HTMLParser(encoding=encoding) + parser = lxml.html.HTMLParser(encoding=encoding, strip_cdata=False) return lxml.html.parse(data, parser) def tostring(self, element):