A two-step synthetic strategy has been developed to achieve functionalized nanoporous polymers via the deprotection of the cross-linked polymer precursors…