diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index d04454af24..fe95ee2b86 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -245,13 +245,13 @@ def sanitize(sanitized, noimages=False): for i in re.finditer('" target="_blank">(https://youtube.com/watch\?v\=.*?)', sanitized): url = i.group(1) replacing = f'{url}' - htmlsource = f'
' + htmlsource = f'' sanitized = sanitized.replace(replacing, htmlsource.replace("watch?v=", "embed/")) for i in re.finditer('{url}' - htmlsource = f'' + htmlsource = f'' sanitized = sanitized.replace(replacing, htmlsource) for i in re.finditer('