From 00f5cb84d55036542165c756e235619631bc7dee Mon Sep 17 00:00:00 2001 From: James Date: Wed, 28 Sep 2016 12:46:11 +0100 Subject: SanitizationFilter allows html5 details and summary (Issue #21605) Also adds details/summary tags to Copy-as-GFM --- lib/banzai/filter/sanitization_filter.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lib/banzai') diff --git a/lib/banzai/filter/sanitization_filter.rb b/lib/banzai/filter/sanitization_filter.rb index af1e575fc89..d5f9e252f62 100644 --- a/lib/banzai/filter/sanitization_filter.rb +++ b/lib/banzai/filter/sanitization_filter.rb @@ -35,6 +35,10 @@ module Banzai # Allow span elements whitelist[:elements].push('span') + # Allow html5 details/summary elements + whitelist[:elements].push('details') + whitelist[:elements].push('summary') + # Allow abbr elements with title attribute whitelist[:elements].push('abbr') whitelist[:attributes]['abbr'] = %w(title) -- cgit v1.2.1