From 0b3246b01c1709d82c37c846cfe0a65a671604ce Mon Sep 17 00:00:00 2001 From: David Cook Date: Tue, 4 Jun 2024 10:24:40 +1000 Subject: [PATCH] Add comment --- app/services/html_sanitizer.rb | 1 + 1 file changed, 1 insertion(+) diff --git a/app/services/html_sanitizer.rb b/app/services/html_sanitizer.rb index 73660d8829..84d78f6f5c 100644 --- a/app/services/html_sanitizer.rb +++ b/app/services/html_sanitizer.rb @@ -6,6 +6,7 @@ # We offer an editor which supports certain tags but you can't insert just any # HTML, which would be dangerous. class HtmlSanitizer + # div is required by Trix editor ALLOWED_TAGS = %w[h1 h2 h3 h4 div p br b i u a strong em del pre blockquote ul ol li hr figure].freeze ALLOWED_ATTRIBUTES = %w[href target].freeze