master
Aevann1 2021-10-01 01:41:03 +02:00
parent 03588697de
commit a0ca3e6515
1 changed files with 5 additions and 1 deletions

View File

@ -225,7 +225,11 @@ def sanitize(sanitized, noimages=False):
else: session["favorite_emojis"][emoji] = 1
except:
pass
sanitized = sanitized.replace("<p>" + i.group(0).lower(), '<p style="margin-bottom:0 !important>' + emojis)
old = "<p>" + i.group(0).lower()
print(old)
new = '<p style="margin-bottom:0 !important>' + emojis
print(new)
sanitized = sanitized.replace(old, new)
for i in re.finditer('\w*(?<!"):([^ ]{1,30}?):', sanitized):
emoji = i.group(1).lower()