The rules on pay in lieu of notice (PILON) changed in April 2018 and now all payments in lieu of notice will be taxable, whether contractual or non-contractual.
So if someone works their notice, they will obviously be paid and taxed on their salary in the normal way up until the date of termination. Any compensation payment they are then given is tax free up to £30,000.