Gelation of photocrosslinkable carboxymethyl chitosan and its application in controlled release of pesticide