class

LiveView::SafeString

Inherits Reference < Object

HTML that is already escaped — inserted verbatim (like ActionView::SafeString, kept local to keep the shard dependency-free).

Constructors

new(raw : String)
Source
new(raw : SafeString) : SafeString
Source

Instance methods

to_s

Returns a nicely readable and concise string representation of this object, typically intended for users.

This method should usually not be overridden. It delegates to #to_s(IO) which can be overridden for custom implementations.

Also see #inspect.

Source