forked from MarseyWorld/MarseyWorld
fix strikethrough, v2
parent
50121f6960
commit
b873492dd0
|
@ -186,6 +186,8 @@ def sanitize(sanitized, edit=False):
|
||||||
|
|
||||||
sanitized = markdown(sanitized)
|
sanitized = markdown(sanitized)
|
||||||
|
|
||||||
|
sanitized = strikethrough_regex.sub(r'\1<del>\2</del>', sanitized)
|
||||||
|
|
||||||
sanitized = sanitized.replace('','').replace('','').replace("\ufeff", "").replace("𒐪","")
|
sanitized = sanitized.replace('','').replace('','').replace("\ufeff", "").replace("𒐪","")
|
||||||
|
|
||||||
sanitized = reddit_regex.sub(r'\1<a href="https://old.reddit.com/\2" rel="nofollow noopener noreferrer">/\2</a>', sanitized)
|
sanitized = reddit_regex.sub(r'\1<a href="https://old.reddit.com/\2" rel="nofollow noopener noreferrer">/\2</a>', sanitized)
|
||||||
|
|
Loading…
Reference in New Issue