diff --git a/app/serializers/api/product_serializer.rb b/app/serializers/api/product_serializer.rb index 592b67ecdb..733904c5b6 100644 --- a/app/serializers/api/product_serializer.rb +++ b/app/serializers/api/product_serializer.rb @@ -1,4 +1,4 @@ -require 'open_food_network/scope_variant_to_hub' +require "open_food_network/scope_variant_to_hub" class Api::ProductSerializer < ActiveModel::Serializer include ActionView::Helpers::SanitizeHelper @@ -23,7 +23,8 @@ class Api::ProductSerializer < ActiveModel::Serializer # return a sanitized html description def description_html - d = sanitize(object.description, tags: "p, b, strong, em, i, a, u", attributes: "href, target") + d = sanitize(object.description, tags: ["p", "b", "strong", "em", "i", "a", "u"], + attributes: ["href", "target"]) d.to_s.html_safe end