forked from MarseyWorld/MarseyWorld
sdfsdf
parent
05017cd917
commit
f3d5098740
|
@ -213,7 +213,7 @@ def sanitize(sanitized, noimages=False):
|
|||
for i in re.finditer("<p>\s*((!\w+!)\s*)+<\/p>", sanitized):
|
||||
old = i.group(0)
|
||||
print(old)
|
||||
new = old.lower().replace("<p>", "<p style='margin-bottom:0 !important'>")
|
||||
new = old.lower().replace("<p>", "<p style='margin-bottom:0'>")
|
||||
for i in re.finditer('\w*(?<!")!([^ ]{1,30}?)!', new):
|
||||
emoji = i.group(1).lower()
|
||||
print(emoji)
|
||||
|
|
Loading…
Reference in New Issue