File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -597,13 +597,13 @@ - (NSArray *)getTextAndStylesFromHtml:(NSString *)fixedHtml {
597597 } else if ([tagName isEqualToString: @" code" ]) {
598598 [styleArr addObject: @([InlineCodeStyle getStyleType ])];
599599 } else if ([tagName isEqualToString: @" a" ]) {
600- [styleArr addObject: @([LinkStyle getStyleType ])];
601- NSRange hrefRange = [params rangeOfString: @" href=" ];
602- stylePair.styleValue = @" " ;
603- if (hrefRange.location != NSNotFound ) {
604- NSString *url = [params substringWithRange: NSMakeRange (6 , params.length - 7 )];
605- stylePair.styleValue = url;
606- }
600+ [styleArr addObject: @([LinkStyle getStyleType ])];
601+ NSRange hrefRange = [params rangeOfString: @" href=" ];
602+ stylePair.styleValue = @" " ;
603+ if (hrefRange.location != NSNotFound ) {
604+ NSString *url = [params substringWithRange: NSMakeRange (6 , params.length - 7 )];
605+ stylePair.styleValue = url;
606+ }
607607 } else if ([tagName isEqualToString: @" mention" ]) {
608608 [styleArr addObject: @([MentionStyle getStyleType ])];
609609 // extract html expression into dict using some regex
You can’t perform that action at this time.
0 commit comments