The problem is that it doesn't know what you mean by "strict". Is
that HTML 3, HTML 4, or HTML 4.01?
Your best bet is to check the "errors" array on the document. That
will tell you if it decided to correct anything:
doc = Nokogiri::HTML('<p>ruby on rails</div>')
raise "invalid html" unless doc.errors.empty?
--
Aaron Patterson
http://tenderlovemaking.com/