From 49ed75d4aba0d7272861f8417411e7f774102281 Mon Sep 17 00:00:00 2001 From: Marshall <363752922@qq.com> Date: Wed, 3 Jun 2020 10:33:45 -0400 Subject: [PATCH] symbol replacement in html --- CoverPages.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/CoverPages.py b/CoverPages.py index 16f1803..b9c0777 100644 --- a/CoverPages.py +++ b/CoverPages.py @@ -48,6 +48,9 @@ class CoverPages (object): title = gg.xmlspecialchars (row.title) #Shortening long titles for latest covers title = title.replace ('"', '"') + title = title.replace ('<', '<') + title = title.replace ('>', '>') + title = title.replace ("'", ''') short_title = title title_len = len(title) short_title = re.sub(r"\-+"," ",short_title)