Skip to content

Commit

Permalink
Merge branch 'release-1.6.20'
Browse files Browse the repository at this point in the history
  • Loading branch information
odrobnik committed Feb 23, 2017
2 parents 850c630 + 65d125d commit f69719d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Core/Source/DTHTMLAttributedStringBuilder.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

#import <DTFoundation/DTLog.h>
#import <DTFoundation/DTHTMLParser.h>
#import <DTFoundation/NSString+DTURLEncoding.h>

#import "DTHTMLAttributedStringBuilder.h"

Expand Down Expand Up @@ -421,7 +422,7 @@ - (void)_registerTagStartHandlers

NSURL *link = [NSURL URLWithString:cleanString];
if (link == nil) {
link = [NSURL URLWithString:[cleanString stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
link = [NSURL URLWithString:[cleanString stringByURLEncoding]];
}

// deal with relative URL
Expand Down

0 comments on commit f69719d

Please sign in to comment.