In all judgments, decrees and orders of sale of such delinquent lands the court may make proper and equitable provision for ascertaining the amount and for the payment of all unpaid State and county taxes with the penalties and costs thereon against the lands ordered sold, to be paid either out of the proceeds of sale thereof or by the purchaser.
S.C. Code § 49-19-1870