remotes/1693045480750635534/spooky-22
parent
23461756e3
commit
19a6626760
|
@ -214,7 +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.*)', sanitized):
|
||||
for i in re.finditer('<p>(https.*)</p>', sanitized):
|
||||
sanitized = sanitized.replace(i.group(1), f"<a href={i.group(1)} target='_blank'>{i.group(1)}</p>")
|
||||
|
||||
return sanitized
|
Loading…
Reference in New Issue