tidy html after putting through validator, unclosed tags etc