class Trenni::MarkupString
Initialized from text which is escaped to use HTML entities.
def self.raw(string)
def self.raw(string) self.new(string, false) end
def initialize(string = nil, escape = true)
-
escape
(Boolean
) -- whether or not to escape the string. -
string
(String
) -- the string value itself.
def initialize(string = nil, escape = true) if string if escape string = Markup.escape_string(string) end super(string) else super() end end