get rid of BeautifulSoup process

This commit is contained in:
Kibzik
2023-01-09 20:54:03 +03:00
parent 7b2c35b15a
commit 147197dec7

View File

@@ -26,9 +26,8 @@ class HtmlEpubProcessor:
cleaned title
"""
title = BeautifulSoup(title_of_chapter, features="lxml").string
# clean extra whitespace characters ([\r\n\t\f\v ])
title = re.sub(r"[\s\xa0]", " ", title).strip()
title = re.sub(r"[\s\xa0]", " ", title_of_chapter).strip()
return title
@staticmethod