mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-02-03 00:31:25 -08:00
allow spoiler html
This commit is contained in:
parent
53319d8c90
commit
cf377ec6b4
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue