Allow img (and its attributes) to be displayed in the shopfront

This commit is contained in:
Jean-Baptiste Bellet
2023-01-26 17:42:32 +01:00
parent 970b7b6738
commit 85d9650903

View File

@@ -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 = {
"&" => "&",
"&" => "&",