Class: String
Direct Known Subclasses
Instance Method Summary collapse
-
#html_safe ⇒ Object
Marks a string as trusted safe.
Instance Method Details
#html_safe ⇒ Object
Marks a string as trusted safe. It will be inserted into HTML with no additional escaping performed. It is your responsibility to ensure that the string contains no malicious content. This method is equivalent to the raw helper in views. It is recommended that you use sanitize instead of this method. It should never be called on user input.
138 139 140 |
# File 'lib/ro/html_safe.rb', line 138 def html_safe ActiveSupport::SafeBuffer.new(self) end |