Liquid phase synthesis of pectin–cadmium sulfide nanocomposite and its photocatalytic and antibacterial activity