def text(selector, content)
      select(selector).each do |node|
        node.content = content
      end
    end
def text(selector, content)
      select(selector).each do |node|
        node.content = content
      end
    end
Replaces the text content of the selected elements.

 Markup in the given content is escaped. Use {#html} if you want to
 replace the contents with live markup.

 @param [String] selector a CSS or XPath string describing the elements to
   transform
 @param [String] content the text that should be the new contents
 @example
   text('h1', 'a title')
   find('h1').text('a title')
   text('p', '<b>title</b>') # <p>&lt;b&gt;title&lt;/title&gt;</p>