Install
sudo gem install nokogiri
Contribute
github.com/tenderlove/nokogiri

An HTML, XML, SAX, & Reader parser with the ability to search documents via XPath or CSS3 selectors… and much more

Nokogiri

Class Nokogiri::HTML::DocumentFragment inherits from Nokogiri::XML::DocumentFragment

Public Class Methods

parse(tags) Show Source

Create a Nokogiri::XML::DocumentFragment from tags

# File lib/nokogiri/html/document_fragment.rb, line 8 def parse tags self.new(HTML::Document.new, tags) end