Add bodystart and bodyend comments to removal list.
This commit is contained in:
parent
205bbf61a2
commit
aa19d49ffc
1 changed files with 2 additions and 0 deletions
|
@ -77,6 +77,8 @@ def remove_header_br(html):
|
|||
@html_cleaner
|
||||
def remove_misc_strings(html):
|
||||
html = html.replace('epub:type="pagebreak"', '')
|
||||
html = html.replace('<!-- BodyStart-->', '')
|
||||
html = html.replace('<!-- BodyEnd-->', '')
|
||||
html = re.sub(r'title="[ivx]+"', '', html)
|
||||
html = re.sub(r'title="\d+"', '', html)
|
||||
return html
|
||||
|
|
Loading…
Reference in a new issue