diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index d8846fc3a8..3cfd889279 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -223,7 +223,7 @@ def sanitize(sanitized, noimages=False): if emoji in session["favorite_emojis"]: session["favorite_emojis"][emoji] += 1 else: session["favorite_emojis"][emoji] = 1 - sanitized = sanitized.replace(i.group(0), emojis).replace("
", "").replace("
", "") + sanitized = sanitized.replace("" + i.group(0) + "
", emojis) for i in re.finditer('\w*(?