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.

Since:

  • 2.1.0

Instance Method Summary collapse

Instance Method Details

#html_safeHanami::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.

Returns:

Since:

  • 2.1.0



70
71
72
# File 'lib/hanami/view/html.rb', line 70

def html_safe
  Hanami::View::HTML::SafeString.new(self)
end