diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 866233edc..8db6bdf93 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -247,9 +247,9 @@ def sanitize(sanitized, noimages=False, alert=False, comment=False): sanitized = sanitized.replace(replacing, htmlsource) for i in re.finditer('>(https://.*?\.(mp4|webm|mov))
', sanitized): - sanitized = sanitized.replace(f'', f'') + sanitized = sanitized.replace(f'
', f'') for i in re.finditer('
(https:.*?\.(mp4|webm|mov))
', sanitized): - sanitized = sanitized.replace(i.group(0), f'') + sanitized = sanitized.replace(i.group(0), f'
') for rd in ["://reddit.com", "://new.reddit.com", "://www.reddit.com", "://redd.it", "://libredd.it"]: sanitized = sanitized.replace(rd, "://old.reddit.com") diff --git a/files/templates/formatting.html b/files/templates/formatting.html index bcbd97705..0da8bc755 100644 --- a/files/templates/formatting.html +++ b/files/templates/formatting.html @@ -64,7 +64,7 @@ You can use Markdown formatting: