class Arbre::HTML::TextNode

def self.from_string(string)

Builds a text node from a string
def self.from_string(string)
  node = new
  node.build(string)
  node
end

def add_child(*args)

def add_child(*args)
  raise "TextNodes do not have children"
end

def build(string)

def build(string)
  @content = string
end

def tag_name

def tag_name
  nil
end

def to_html

def to_html
  ERB::Util.html_escape(@content.to_html)
end