instance method
html_escape_translation_options
Ruby on Rails 6.1.7.10
Since v6.1.7.10 Last seen in v6.1.7.10 PrivateSignature
html_escape_translation_options(options)
No documentation comment.
Parameters
-
optionsreq
Source
# 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
Defined in actionview/lib/action_view/helpers/translation_helper.rb line 148
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::Helpers::TranslationHelper