forked from indymedia/epicyon
Replace quotes
parent
f54c06c0c3
commit
ce1067d1a9
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue