method
html_safe_translation_keys
v2.3.8 -
Show latest stable
- Class:
ActionView::Helpers::TranslationHelper
html_safe_translation_keys(keys, translations)private
No documentation available.
# File actionpack/lib/action_view/helpers/translation_helper.rb, line 56
def html_safe_translation_keys(keys, translations)
keys.zip(translations).map do |key, translation|
if key =~ /(\b|_|\.)html$/ && translation.respond_to?(:html_safe)
translation.html_safe
else
translation
end
end
end