mirror of
https://gitlab.opencode.de/bwi/bundesmessenger/clients/bundesmessenger-ios.git
synced 2026-04-19 16:13:42 +02:00
Set HTML formatter as static
This commit is contained in:
@@ -1773,10 +1773,8 @@ static NSString *const kHTMLATagRegexPattern = @"<a href=(?:'|\")(.*?)(?:'|\")>(
|
||||
// Apply the css style that corresponds to the event state
|
||||
UIFont *fontForWholeString = [self fontForEvent:event string:htmlString];
|
||||
|
||||
HTMLFormatter *htmlFormatter = [[HTMLFormatter alloc] init];
|
||||
|
||||
MXWeakify(self);
|
||||
NSAttributedString *str = [htmlFormatter formatHTML:html
|
||||
NSAttributedString *str = [HTMLFormatter formatHTML:html
|
||||
withAllowedTags:_allowedHTMLTags
|
||||
font:fontForWholeString
|
||||
andImageHandler:_htmlImageHandler
|
||||
|
||||
Reference in New Issue
Block a user