fixes HTML pre-processing