Is there any clean way to get the contents of text nodes with Nokogiri? Right now I\'m using
some_node.at_xpath( \"//whatever\" ).first.content
Just look for text nodes:
require 'nokogiri' doc = Nokogiri::HTML(< This is a text node This is another text node
This is a text node
This is another text node