cleanup html while scraping (re #151, re #215)