mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-19 04:49:15 +00:00
Allow img (and its attributes) to be displayed in the shopfront
This commit is contained in:
@@ -5,8 +5,8 @@
|
||||
class ContentSanitizer
|
||||
include ActionView::Helpers::SanitizeHelper
|
||||
|
||||
ALLOWED_TAGS = ["p", "b", "strong", "em", "i", "a", "u"].freeze
|
||||
ALLOWED_ATTRIBUTES = ["href", "target"].freeze
|
||||
ALLOWED_TAGS = ["p", "b", "strong", "em", "i", "a", "u", "img"].freeze
|
||||
ALLOWED_ATTRIBUTES = ["href", "target", "src", "alt"].freeze
|
||||
FILTERED_CHARACTERS = {
|
||||
"&" => "&",
|
||||
"&" => "&",
|
||||
|
||||
Reference in New Issue
Block a user