html cleanup / validation