Strip 0 bytes from HTML before parsing

This commit is contained in:
Kovid Goyal 2009-04-25 14:12:23 -07:00
parent e80fcc13fc
commit 0d07ad2610

View File

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