Novel antifouling and antibacterial polyethersulfone membrane prepared by embedding nitrogen-doped carbon dots for efficient salt and dye rejection.