master
Aevann1 2021-09-01 22:57:02 +02:00
parent 4394021b66
commit 3beea0a019
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 = sanitized.replace(rd, "https://old.reddit.com/")
for i in re.finditer('[^">](https:\/\/[^ ]*)', sanitized): for i in re.finditer('[^">](https:\/\/[^ ]*)', sanitized):
sanitized = sanitized.replace(i.group(1), f"<a href={i.group(1)} target='_blank'>{i.group(1)}</a>") sanitized = sanitized.replace(i.group(1), f"<a href={i.group(1)} {i.group(1)}</a>")
return sanitized return sanitized