diff --git a/src/pyj/read_book/resources.pyj b/src/pyj/read_book/resources.pyj index a8d441a08e..afce0a48a5 100644 --- a/src/pyj/read_book/resources.pyj +++ b/src/pyj/read_book/resources.pyj @@ -401,7 +401,7 @@ def text_from_serialized_html(data): for child in serialized_data.tree.c: if child.n is 'body': stack.push(child) - ignore_text = {'script':True, 'style':True} + ignore_text = {'script':True, 'style':True, 'title': True} while stack.length: node = stack.pop() if jstype(node) is 'string': @@ -411,7 +411,7 @@ def text_from_serialized_html(data): src = tag_map[node[0]] else: src = node - if not ignore_text[src.n] and src.x: + if src.n and not ignore_text[src.n] and src.x: ans.push(src.x) if src.l: stack.push(src.l)