mirror of https://github.com/vector-im/riot-web
				
				
				
			Merge pull request #5760 from maunium/allow-details
Add details and summary to allowed HTML tagspull/21833/head
						commit
						a2d63f5fb7
					
				| 
						 | 
				
			
			@ -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:
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue