dogecore
This commit is contained in:
parent
b1cd2cc264
commit
0fe127af09
3 changed files with 27 additions and 21 deletions
|
@ -303,6 +303,8 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False, edit=False):
|
|||
|
||||
url = i.group(1)
|
||||
yt_id = i.group(2).split('&')[0].split('%')[0]
|
||||
if not yt_id_regex.fullmatch(yt_id): continue
|
||||
|
||||
replacing = f'<a href="{url}" rel="nofollow noopener noreferrer" target="_blank">{url}</a>'
|
||||
|
||||
params = parse_qs(urlparse(url.replace('&','&')).query)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue