A novel carboxyl-rich chitosan-based polymer and its application for clay flocculation and cationic dye removal.