forked from MarseyWorld/MarseyWorld
sfdsfd
parent
03588697de
commit
a0ca3e6515
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue