Text this: Selective chelating precipitation of palladium metal from electroplating wastewater using chitosan and its derivative