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:
|
if encoding is None:
|
||||||
parser = None
|
parser = None
|
||||||
else:
|
else:
|
||||||
parser = lxml.html.HTMLParser(encoding=encoding)
|
parser = lxml.html.HTMLParser(encoding=encoding, strip_cdata=False)
|
||||||
return lxml.html.parse(data, parser)
|
return lxml.html.parse(data, parser)
|
||||||
|
|
||||||
def tostring(self, element):
|
def tostring(self, element):
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue