From 5861def3ab5f7aed9999b647777b52630f3d9444 Mon Sep 17 00:00:00 2001 From: Dilwoar Hussain Date: Thu, 12 Nov 2020 12:28:40 +0000 Subject: [PATCH] allow tracking attributes to be rendered when sanitized --- app/views/content_items/_attachments.html.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/content_items/_attachments.html.erb b/app/views/content_items/_attachments.html.erb index 915136f84..61b1f1cce 100644 --- a/app/views/content_items/_attachments.html.erb +++ b/app/views/content_items/_attachments.html.erb @@ -9,7 +9,7 @@ direction: page_text_direction, } do %> <%= sanitize(legacy_pre_rendered_documents, { - attributes: %w(alt class data-module href id src), + attributes: %w(alt class href id src data-module data-track-category data-track-action data-track-label data-track-options data-details-track-click), tags: %w(a details div h2 img p section span summary), }) %> <% end %>