The damages a secured lender may recover pursuant to subdivision (a) shall not include (i) any part of the principal amount or accrued interest of the secured obligation, except for any amounts advanced by the secured lender to cure or mitigate the breach of the environmental provision that are added to the principal amount, and contractual interest thereon, or (ii) amounts which relate to a release which was knowingly permitted, caused, or contributed to by the secured lender or any affiliate or agent of the secured lender.
Ca. Civ. Proc. Code § 736