fix issue with showmore button breaking divs

master
Aevann1 2022-08-04 21:31:13 +02:00
parent 8951d08d1c
commit d069550284
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ def sanitize(sanitized, edit=False):
sanitized = sanitized.replace('\n','') sanitized = sanitized.replace('\n','')
if len(sanitized) > 5000: if len(sanitized) > 5000:
sanitized = showmore_regex.sub(r'\1<p><button class="showmore" onclick="showmore()">SHOW MORE</button></p><div class="d-none">\2</div>', sanitized) sanitized = showmore_regex.sub(r'\1<p><button class="showmore" onclick="showmore()">SHOW MORE</button></p><d class="d-none">\2</d>', sanitized)
return sanitized.strip() return sanitized.strip()