module Hanami::View::HTML::StringExtensions

@api private @since 2.1.0

Public Instance Methods

html_safe() click to toggle source

Returns the string as a {Hanami::View::HTML::SafeString}, ensuring the string is not automatically escaped when used in HTML view templates.

@return [Hanami::View::HTML::SafeString]

@api public @since 2.1.0

# File lib/hanami/view/html.rb, line 70
def html_safe
  Hanami::View::HTML::SafeString.new(self)
end