A sustainable freeze-drying route to porous polysaccharides with tailored hierarchical meso- and macroporosity.