forked from LiveCarta/BookConverter
Clean of "< >"
This commit is contained in:
@@ -28,6 +28,9 @@ class HtmlEpubProcessor:
|
||||
"""
|
||||
# clean extra whitespace characters ([\r\n\t\f\v ])
|
||||
title = re.sub(r"[\s\xa0]", " ", title_of_chapter).strip()
|
||||
to_replace = {"<": ">", ">": "<"}
|
||||
for char in to_replace.keys():
|
||||
title = title.replace(char, to_replace[char])
|
||||
return title
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user