From 2156204be4545852c740b3ed166b003592fb452b Mon Sep 17 00:00:00 2001 From: Sebastian Serth Date: Sat, 14 Oct 2023 00:28:45 +0200 Subject: [PATCH] Allow details and summary tags in HTML Those two tags can be used to add expandable content, for example, to an exercise description. --- config/application.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/application.rb b/config/application.rb index 99f448d5..6117d1be 100644 --- a/config/application.rb +++ b/config/application.rb @@ -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