fd
This commit is contained in:
parent
2076d276af
commit
4570451f75
1 changed files with 3 additions and 0 deletions
|
@ -244,4 +244,7 @@ def sanitize(sanitized, noimages=False):
|
||||||
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)} {i.group(1)}</a>")
|
sanitized = sanitized.replace(i.group(1), f"<a href={i.group(1)} {i.group(1)}</a>")
|
||||||
|
|
||||||
|
for i in re.finditer('<p>(https:\/\/[^ ]*)', sanitized):
|
||||||
|
sanitized = sanitized.replace(i.group(1), f"<a href={i.group(1)} {i.group(1)}</a>")
|
||||||
|
|
||||||
return sanitized
|
return sanitized
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue