removing invalid html