Add ENT_XML1 flag to htmlentities