Per review, use existing TrixScrubber to sanitize content

This commit is contained in:
Gaetan Craig-Riou
2023-11-20 11:13:40 +11:00
parent 085629fae1
commit eb4115ceed

View File

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