mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-07 10:14:46 -04:00
Strip 0 bytes from HTML before parsing
This commit is contained in:
parent
e80fcc13fc
commit
0d07ad2610
@ -157,6 +157,7 @@ class HTMLPreProcessor(object):
|
||||
def __call__(self, html, remove_special_chars=None):
|
||||
if remove_special_chars is not None:
|
||||
html = remove_special_chars.sub('', html)
|
||||
html = html.replace('\0', '')
|
||||
if self.is_baen(html):
|
||||
rules = []
|
||||
elif self.is_book_designer(html):
|
||||
|
Loading…
x
Reference in New Issue
Block a user