Keywords: borates; conjugated microporous polymers; covalent organic frameworks; ion exchange; weakly coordinating ions.