mirror of
https://gitlab.com/bashrc2/epicyon
synced 2026-10-31 01:51:15 +00:00
Replace quotes
This commit is contained in:
1 parent
f54c06c0c3
commit
ce1067d1a9
1 file changed
+4
@@ -22,6 +22,10 @@ def htmlReplaceEmailQuote(content: str) -> str:
|
||||
if '"</p>' in content:
|
||||
content = content.replace('<p>"', '<p><blockquote>')
|
||||
content = content.replace('"</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 '>> ' not in content:
|
||||
return content
|
||||
|
||||
Reference in new issue
Block a user