master
Aevann1 2021-09-01 23:19:12 +02:00
parent efb292a760
commit 8e3d92e5db
1 changed files with 1 additions and 1 deletions

View File

@ -242,6 +242,6 @@ def sanitize(sanitized, noimages=False):
sanitized = sanitized.replace(rd, "https://old.reddit.com/")
sanitized = re.sub('([^">])(https:\/\/[^ <>]*)', r'\1<a href="\2">\2</a>', sanitized)
sanitized = re.sub('<p>(https:\/\/[^ <>]*)', r'\1<a href="\2">\2</a>', sanitized)
sanitized = re.sub('<p>(https:\/\/[^ <>]*)', r'<p><a href="\1">\1</a>', sanitized)
return sanitized