fix issue with showmore button breaking divs
parent
8951d08d1c
commit
d069550284
|
@ -389,7 +389,7 @@ def sanitize(sanitized, edit=False):
|
|||
sanitized = sanitized.replace('\n','')
|
||||
|
||||
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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue