inspired by json.tool, a pretty printer for html $ echo 'Hello World' | python -m html.tool Hello World
sudo apt-get install python-beautifulsoup
OR sudo easy_install BeautifulSoup OR some such THEN git clone git://github.com/tjulien/html.git and put that in your PYTHONPATH OR save it under site-packages