method
html_safe_translation
v7.0.0 -
Show latest stable
- Class:
ActiveSupport::HtmlSafeTranslation
html_safe_translation(translation)private
No documentation available.
# File activesupport/lib/active_support/html_safe_translation.rb, line 35
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