[Red] generateclosingEscapeTag