Allow details and summary tags in HTML

Those two tags can be used to add expandable content, for example, to an exercise description.
This commit is contained in:
Sebastian Serth
2023-10-14 00:28:45 +02:00
parent 84f844c1c5
commit 2156204be4

View File

@ -64,7 +64,7 @@ module CodeOcean
end
# Allow tables in addition to existing default tags
config.action_view.sanitized_allowed_tags = ActionView::Base.sanitized_allowed_tags + %w[table thead tbody tfoot td tr]
config.action_view.sanitized_allowed_tags = ActionView::Base.sanitized_allowed_tags + %w[table thead tbody tfoot td tr details summary]
# Extract Sentry-related parameters from WebSocket connection
config.middleware.insert_before 0, Middleware::WebSocketSentryHeaders