instance method html_safe_translation

Ruby on Rails 6.1.7.10

Since v6.1.7.10 Last seen in v6.1.7.10 Private

Signature

html_safe_translation(translation)

No documentation comment.

Parameters

translation req
Source
# 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

Defined in actionview/lib/action_view/helpers/translation_helper.rb line 165 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActionView::Helpers::TranslationHelper

Type at least 2 characters to search.

↑↓ navigate · open · esc close