Module: Hanami::View::HTML::StringExtensions Private
- Included in:
- String
- Defined in:
- lib/hanami/view/html.rb
Overview
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Instance Method Summary collapse
-
#html_safe ⇒ Hanami::View::HTML::SafeString
Returns the string as a SafeString, ensuring the string is not automatically escaped when used in HTML view templates.
Instance Method Details
#html_safe ⇒ Hanami::View::HTML::SafeString
Returns the string as a Hanami::View::HTML::SafeString, ensuring the string is not automatically escaped when used in HTML view templates.
70 71 72 |
# File 'lib/hanami/view/html.rb', line 70 def html_safe Hanami::View::HTML::SafeString.new(self) end |