From eb4115ceed1c83fc3d440dc38b122e66a53ec058 Mon Sep 17 00:00:00 2001 From: Gaetan Craig-Riou Date: Mon, 20 Nov 2023 11:13:40 +1100 Subject: [PATCH] Per review, use existing TrixScrubber to sanitize content --- app/views/shared/_page_alert.html.haml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/views/shared/_page_alert.html.haml b/app/views/shared/_page_alert.html.haml index 2a97684da4..b13a0710fa 100644 --- a/app/views/shared/_page_alert.html.haml +++ b/app/views/shared/_page_alert.html.haml @@ -1,6 +1,6 @@ - if ContentConfig.home_page_alert_html.present? .alert-cta - %h6= sanitize(@comment.body, tags: %w(strong em a i span), attributes: %w(href target)) + %h6= sanitize(ContentConfig.home_page_alert_html, scrubber: TrixScrubber.new) - else = render "shared/register_call"