  Herein we firstly introduce a straightforward, scalable and technologically
relevant strategy to manufacture charged porous polymer membranes (CPMs) in a
controllable manner. The pore sizes and porous architectures of CPMs are
well-controlled by rational choice of anions in poly(ionic liquid)s (PILs).
Continuously, heteroatom-doped hierarchically porous carbon membrane (HCMs) can
be readily fabricated via morphology-maintaining carbonization of as-prepared
CPMs. These HCMs being as photothermal membranes exhibited excellent
performance for solar seawater desalination, representing a promising strategy
to construct advanced functional nanomaterials for portable water production
technologies.
