forked from rDrama/rDrama
1
0
Fork 0

fix strikethrough, v2

master
Aevann1 2022-06-28 07:52:29 +02:00
parent 50121f6960
commit b873492dd0
1 changed files with 2 additions and 0 deletions

View File

@ -186,6 +186,8 @@ def sanitize(sanitized, edit=False):
sanitized = markdown(sanitized)
sanitized = strikethrough_regex.sub(r'\1<del>\2</del>', sanitized)
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)