change html_minify to recursive function

As per discussions in #21, I implemented a minify version using recursive functions to walk and clean the tree.