symbol replacement in html

bk_debug
Marshall 2020-06-03 10:33:45 -04:00
parent 157a77e1f3
commit 49ed75d4ab
1 changed files with 3 additions and 0 deletions

View File

@ -48,6 +48,9 @@ class CoverPages (object):
title = gg.xmlspecialchars (row.title)
#Shortening long titles for latest covers
title = title.replace ('"', '"')
title = title.replace ('<', '&lt;')
title = title.replace ('>', '&gt;')
title = title.replace ("'", '&apos;')
short_title = title
title_len = len(title)
short_title = re.sub(r"\-+"," ",short_title)