Skip to content

Commit 91aada4

Browse files
committed
fix: always add stylePair
1 parent 97c327b commit 91aada4

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

ios/inputParser/InputParser.mm

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -599,6 +599,7 @@ - (NSArray *)getTextAndStylesFromHtml:(NSString *)fixedHtml {
599599
} else if([tagName isEqualToString:@"a"]) {
600600
[styleArr addObject:@([LinkStyle getStyleType])];
601601
NSRange hrefRange = [params rangeOfString:@"href="];
602+
stylePair.styleValue = @"";
602603
if(hrefRange.location != NSNotFound) {
603604
NSString *url = [params substringWithRange:NSMakeRange(6, params.length - 7)];
604605
stylePair.styleValue = url;

0 commit comments

Comments
 (0)