Replace quotes

This commit is contained in:
bashrc committed 2020-09-14 13:17:11 +01:00
1 parent f54c06c0c3
commit ce1067d1a9
1 file changed
+4
+4
View File
@@ -22,6 +22,10 @@ def htmlReplaceEmailQuote(content: str) -> str:
if '&quot;</p>' in content:
content = content.replace('<p>&quot;', '<p><blockquote>')
content = content.replace('&quot;</p>', '</blockquote></p>')
if '>\u201c' in content:
if '\u201d<' in content:
content = content.replace('>\u201c', '><blockquote>')
content = content.replace('\u201d<', '</blockquote><')
# replace email style quote
if '>&gt; ' not in content:
return content