fix ill-formed HTML