Never been to DZone Snippets before? Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world This Ruby script reads an html file and makes it XML Valid. It was designed as a quick and dirty alternative to Tidy. 1 #!/usr/bin/ruby 2 3 require 'stack' 4 5 class TidySimple 6 def initi