diff --git a/utils/fb2_utils.py b/utils/fb2_utils.py new file mode 100644 index 0000000..dbd7459 --- /dev/null +++ b/utils/fb2_utils.py @@ -0,0 +1,6 @@ +import re + +def strip_tags(rawtext): + text = re.sub("
", "\n\t", rawtext) + text = re.sub("<.+?>", "", rawtext) + return text \ No newline at end of file