Add comment

This commit is contained in:
David Cook
2024-06-04 10:24:40 +10:00
committed by zanetagebka
parent 442fe8c956
commit 0b3246b01c

View File

@@ -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