Is there any HTML parser in Ruby that reads HTML document into a DOM Tree and represents HTML tags as DOM elements?
I know Nokogiri but it doesn't parse HTML into DOM tree.
Is there any HTML parser in Ruby that reads HTML document into a DOM Tree and represents HTML tags as DOM elements?
I know Nokogiri but it doesn't parse HTML into DOM tree.
Despite your remark, Nokogiri is the way to go:
It parses even invalid HTML and returns a DOM tree: