adding exception on invalid html