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

Commit

Permalink
Add details and summary to allowed HTML tags
Browse files Browse the repository at this point in the history
Implements MSC2184 (matrix-org/matrix-spec-proposals#2184)

Signed-off-by: Tulir Asokan <[email protected]>
  • Loading branch information
tulir committed Mar 14, 2021
1 parent d3541b7 commit 830080c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/HtmlUtils.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ const sanitizeHtmlParams: IExtendedSanitizeOptions = {
'h1', 'h2', 'h3', 'h4', 'h5', 'h6', 'blockquote', 'p', 'a', 'ul', 'ol', 'sup', 'sub',
'nl', 'li', 'b', 'i', 'u', 'strong', 'em', 'strike', 'code', 'hr', 'br', 'div',
'table', 'thead', 'caption', 'tbody', 'tr', 'th', 'td', 'pre', 'span', 'img',
'details', 'summary',
],
allowedAttributes: {
// custom ones first:
Expand Down

0 comments on commit 830080c

Please sign in to comment.