tidy up html so when we calculate text to tag ratio, that documents are normalized