mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
12 lines
225 B
Ruby
12 lines
225 B
Ruby
# frozen_string_literal: true
|
|
|
|
class TrixSanitizer
|
|
include ActionView::Helpers::SanitizeHelper
|
|
|
|
def sanitize_content(content)
|
|
return if content.blank?
|
|
|
|
sanitize(content.to_s, scrubber: TrixScrubber.new)
|
|
end
|
|
end
|