diff options
Diffstat (limited to 'example/ios/iOS UI Test/iOS UI Test/MCOMessageView.mm')
-rwxr-xr-x | example/ios/iOS UI Test/iOS UI Test/MCOMessageView.mm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/example/ios/iOS UI Test/iOS UI Test/MCOMessageView.mm b/example/ios/iOS UI Test/iOS UI Test/MCOMessageView.mm index c39ee1af..158387d2 100755 --- a/example/ios/iOS UI Test/iOS UI Test/MCOMessageView.mm +++ b/example/ios/iOS UI Test/iOS UI Test/MCOMessageView.mm @@ -147,7 +147,7 @@ NSDictionary * args = @{ @"URLKey": urlString, @"LocalPathKey": cacheURL.absoluteString }; NSString * jsonString = [self _jsonEscapedStringFromDictionary:args]; - NSString * replaceScript = [NSString stringWithFormat:@"replaceImageSrc(\"%@\")", jsonString]; + NSString * replaceScript = [NSString stringWithFormat:@"replaceImageSrc(%@)", jsonString]; [_webView stringByEvaluatingJavaScriptFromString:replaceScript]; }; @@ -165,8 +165,6 @@ { NSData * json = [NSJSONSerialization dataWithJSONObject:dictionary options:0 error:nil]; NSString * jsonString = [[NSString alloc] initWithData:json encoding:NSUTF8StringEncoding]; - jsonString = [jsonString stringByReplacingOccurrencesOfString:@"\\" withString:@"\\\\"]; - jsonString = [jsonString stringByReplacingOccurrencesOfString:@"\"" withString:@"\\\""]; return jsonString; } |