method
html_safe_translation
rails latest stable - Class:
ActionView::Helpers::TranslationHelper
html_safe_translation(translation)private
No documentation available.
# File actionview/lib/action_view/helpers/translation_helper.rb, line 165
def html_safe_translation(translation)
if translation.respond_to?(:map)
translation.map { |element| element.respond_to?(:html_safe) ? element.html_safe : element }
else
translation.respond_to?(:html_safe) ? translation.html_safe : translation
end
end