EXC_BAD_ACCESS NSAttributedString.init

Recently, my application has a crash, which did not exist before iOS18, how can I fix this problem, the following is crash stack

my code

how i ues it

darkText = NSAttributedString.getHtmlText(self.bannerModel?.darkText ?? "")

EXC_BAD_ACCESS NSAttributedString.init
 
 
Q