mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-04 22:16:08 +00:00
Per review, use existing TrixScrubber to sanitize content
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user