Rewrote html2txt script in ruby.