method
html_safe
v3.1.0 -
Show latest stable
- Class:
String
html_safe()public
No documentation available.
# File activesupport/lib/active_support/core_ext/string/output_safety.rb, line 160
def html_safe
ActiveSupport::SafeBuffer.new(self)
end 1Note
use raw() instead
Don't use this method unless you're sure your string isn't nil. Instead use the raw() method, which wont raise an exception on nil.