Introducing the Htmle gem Usage require 'htmle' s =<<EOF <html> <div></div> </html> EOF doc = Htmle.new s Resources htmle https://rubygems.org/gems/htmle htmle html dom gem