do not strip cdata
This commit is contained in:
parent
f41d8c516c
commit
8bd0ebbea2
1 changed files with 1 additions and 1 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue