remove doctype declaration function from View file