Layer-by-layer deposition of a TiO2-filled intumescent coating and its effect on the flame retardancy of polyamide and polyester fabrics