Facile surface modification of textiles with photocatalytic carbon nitride nanosheets and the excellent performance for self-cleaning and degradation of gaseous formaldehyde.