remotes/1693045480750635534/spooky-22
Aevann1 2021-08-11 21:26:12 +02:00
parent 8493e4b54c
commit 05d2dcf992
1 changed files with 1 additions and 1 deletions

View File

@ -215,6 +215,6 @@ def sanitize(text, linkgen=False, flair=False):
sanitized = sanitized.replace(url, f"{url_noquery}?{urlencode(p, True)}")
for i in re.finditer('<p>(https.*)</p>', sanitized):
sanitized = sanitized.replace(i.group(), f"<a href={i.group(1)}>{i.group(1)}</p>")
sanitized = sanitized.replace(i.group(1), f"<a href={i.group(1)} target='_blank'>{i.group(1)}</p>")
return sanitized