method

html_safe_translation

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_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