allow spoiler html

This commit is contained in:
rimu 2024-01-19 21:00:46 +13:00
parent 53319d8c90
commit cf377ec6b4

View file

@ -155,7 +155,7 @@ def allowlist_html(html: str) -> str:
if html is None or html == '':
return ''
allowed_tags = ['p', 'strong', 'a', 'ul', 'ol', 'li', 'em', 'blockquote', 'cite', 'br', 'h3', 'h4', 'h5', 'pre',
'code', 'img']
'code', 'img', 'details', 'summary']
# Parse the HTML using BeautifulSoup
soup = BeautifulSoup(html, 'html.parser')