fix HTML <app> processing in light of new samples