master
Aevann1 2021-09-23 00:05:04 +02:00
parent 020afb954e
commit 1f1aa3d162
1 changed files with 2 additions and 2 deletions

View File

@ -217,8 +217,8 @@ 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>')
li1 = re.finditer('<p>:([^ ]{1,30}?):</p>', sanitized)
li2 = re.finditer(':([^ ]{1,30}?):', sanitized)
li1 = list(re.finditer('<p>:([^ ]{1,30}?):</p>', sanitized))
li2 = list(re.finditer(':([^ ]{1,30}?):', sanitized))
for i in li1:
emoji = i.group(1).lower()