Homogeneous and heterogeneous grafting of 4‐vinylpyridine onto chitosan