method

html_escape_translation_options

rails latest stable - Class: ActionView::Helpers::TranslationHelper

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.1.7.7) is shown here.

html_escape_translation_options(options)
private

No documentation available.

# File actionview/lib/action_view/helpers/translation_helper.rb, line 148
        def html_escape_translation_options(options)
          return options if options.empty?
          html_safe_options = options.dup

          options.each do |name, value|
            unless TranslationHelper.i18n_option?(name) || (name == :count && value.is_a?(Numeric))
              html_safe_options[name] = ERB::Util.html_escape(value.to_s)
            end
          end

          html_safe_options
        end