A building contractor suffered burns to his legs and others were treated for smoke inhalation after a fire broke out at a Fox's Biscuits manufacturing facility in Yorkshire.