Skip to content
This repository was archived by the owner on Dec 7, 2024. It is now read-only.

Commit 830080c

Browse files
committed
Add details and summary to allowed HTML tags
Implements MSC2184 (matrix-org/matrix-spec-proposals#2184) Signed-off-by: Tulir Asokan <tulir@maunium.net>
1 parent d3541b7 commit 830080c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/HtmlUtils.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -237,6 +237,7 @@ const sanitizeHtmlParams: IExtendedSanitizeOptions = {
237237
'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol', 'sup', 'sub',
238238
'nl', 'li', 'b', 'i', 'u', 'strong', 'em', 'strike', 'code', 'hr', 'br', 'div',
239239
'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre', 'span', 'img',
240+
'details', 'summary',
240241
],
241242
allowedAttributes: {
242243
// custom ones first:

0 commit comments

Comments
 (0)