demarches-normaliennes/app/helpers/sanitize_with_link_helper.rb
2024-08-22 09:26:48 +02:00

8 lines
204 B
Ruby

# frozen_string_literal: true
module SanitizeWithLinkHelper
def sanitize_with_link(value)
tags = Rails.configuration.action_view.sanitized_allowed_tags + ['a']
sanitize(value, tags:)
end
end