mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
231e8aeca3
commit
6f955c596f
@ -78,7 +78,7 @@ def node_depth(node):
|
|||||||
p = p.getparent()
|
p = p.getparent()
|
||||||
return ans
|
return ans
|
||||||
|
|
||||||
def html5_parse(data, max_nesting_depth=500):
|
def html5_parse(data, max_nesting_depth=300):
|
||||||
import html5lib
|
import html5lib
|
||||||
data = html5lib.parse(data, treebuilder='lxml').getroot()
|
data = html5lib.parse(data, treebuilder='lxml').getroot()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user