mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-18 04:39:14 +00:00
Sanitize home_page_alert_html
It still allows some specific tag so we can have link and some formatting.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
- if ContentConfig.home_page_alert_html.present?
|
||||
.alert-cta
|
||||
%h6= raw ContentConfig.home_page_alert_html
|
||||
%h6= sanitize(@comment.body, tags: %w(strong em a i span), attributes: %w(href target))
|
||||
|
||||
- else
|
||||
= render "shared/register_call"
|
||||
|
||||
Reference in New Issue
Block a user