This commit is contained in:
Kovid Goyal 2011-12-27 00:47:45 +05:30
parent 231e8aeca3
commit 6f955c596f

View File

@ -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()