class Trenni::MarkupString

Initialized from text which is escaped to use HTML entities.

def self.raw(string)

Generate a valid MarkupString withot any escaping.
def self.raw(string)
	self.new(string, false)
end

def initialize(string = nil, escape = true)

Parameters:
  • 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