A method for treating nanohydrogels comprising—a dispersion step, in which a nanohydrogel obtained from a polysaccharide functionalized with hydrophobic molecules is dispersed in an aqueous solution, and a sterilization and homogenization step, in which the aqueous dispersion of nanohydrogels is added with a compound designed to be charged in the nanohydrogel particles by being englobed or adsorbed thereby and is subjected to a temperature of between 70° C. and 150° C. and a pressure of between 1 and 5 bar in said sterilization and homogenization step, the conditions of temperature and pressure must be such that boiling of the aqueous dispersion of nanohydrogels does not occur.