forked from LiveCarta/BookConverter
get rid of BeautifulSoup process
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user