diff --git a/src/calibre/ebooks/oeb/parse_utils.py b/src/calibre/ebooks/oeb/parse_utils.py index af0eb479f0..5b70574e13 100644 --- a/src/calibre/ebooks/oeb/parse_utils.py +++ b/src/calibre/ebooks/oeb/parse_utils.py @@ -78,7 +78,7 @@ def node_depth(node): p = p.getparent() return ans -def html5_parse(data, max_nesting_depth=500): +def html5_parse(data, max_nesting_depth=300): import html5lib data = html5lib.parse(data, treebuilder='lxml').getroot()