forked from rDrama/rDrama
fdsfds
parent
16c6ddd329
commit
f74eeded31
|
@ -217,8 +217,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, '<span class="spoiler">').replace(end, '</span>')
|
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, '<span class="spoiler">').replace(end, '</span>')
|
||||||
|
|
||||||
print(sanitized)
|
for i in re.finditer("^(\s+)?((:[\w]+:)+(\s+)?)+", sanitized.replace("<p>", "").replace("</p>", ""), re.MULTILINE):
|
||||||
for i in re.finditer("^(\s+)?((:[\w]+:)+(\s+)?)+", sanitized.replace("<p>", "").replace("</p>", "")):
|
|
||||||
print(i)
|
print(i)
|
||||||
emojis = i.group(0).lower()
|
emojis = i.group(0).lower()
|
||||||
print(emojis)
|
print(emojis)
|
||||||
|
|
Loading…
Reference in New Issue