diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index 79691d06ca..1c054761f6 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -213,7 +213,7 @@ def sanitize(sanitized, noimages=False): if start in sanitized and end in sanitized and start in sanitized.split(end)[0] and end in sanitized.split(start)[1]: sanitized = sanitized.replace(start, '').replace(end, '') - for i in re.finditer("
\s*((:\w+:)\s*)+<\/p>", sanitized.replace("
", "").replace("
", ""), re.MULTILINE): + for i in re.finditer("\s*((:\w+:)\s*)+<\/p>", sanitized.replace("
", "").replace("
", "")): emojis = i.group(0).lower() for i in re.finditer('\w*(?