remotes/1693045480750635534/spooky-22
Aevann1 2021-08-11 21:25:28 +02:00
parent 99dd983387
commit 8493e4b54c
1 changed files with 3 additions and 0 deletions

View File

@ -214,4 +214,7 @@ def sanitize(text, linkgen=False, flair=False):
url_noquery = url.split('?')[0]
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>")
return sanitized