Commit 9887e758e122bce93d6667e3b8f4b907c97b5a65

Authored by iOS-Xiaowen
1 parent 2f5fac87

no message

CNLiveScioLive/Pages/Home/新闻详情/OldController/OldArticleDetailViewController.m
@@ -76,6 +76,7 @@ @@ -76,6 +76,7 @@
76 "</body>" 76 "</body>"
77 "</html>",[_dictionary objectForKey:@"title"],[_dictionary objectForKey:@"createDate"],[NSString stringWithFormat:@"%@:%@",CustomStr(@"Source"), author?author:@"国新网"],fontArray[fontIndex],content]; 77 "</html>",[_dictionary objectForKey:@"title"],[_dictionary objectForKey:@"createDate"],[NSString stringWithFormat:@"%@:%@",CustomStr(@"Source"), author?author:@"国新网"],fontArray[fontIndex],content];
78 // NSString * htmlcontent = [NSString stringWithFormat:@"<div id=\"webview_content_wrapper\">%@<font style=\"font-size:%@px;\">%@</font></div>",htmlHeader,fontArray[fontIndex],content]; 78 // NSString * htmlcontent = [NSString stringWithFormat:@"<div id=\"webview_content_wrapper\">%@<font style=\"font-size:%@px;\">%@</font></div>",htmlHeader,fontArray[fontIndex],content];
  79 + [htmlcontent stringByReplacingOccurrencesOfString:@"amp;" withString:@""];
79 NSLog(@"htmlcontent = %@",htmlcontent); 80 NSLog(@"htmlcontent = %@",htmlcontent);
80 return htmlcontent; 81 return htmlcontent;
81 } 82 }
@@ -96,7 +97,7 @@ @@ -96,7 +97,7 @@
96 NSDictionary *dic = [NSDictionary dictionaryWithDictionary:responseObject]; 97 NSDictionary *dic = [NSDictionary dictionaryWithDictionary:responseObject];
97 // NSLog(@"%@",dic); 98 // NSLog(@"%@",dic);
98 if ([dic[@"errorCode"] isEqualToString:@"0"]) { 99 if ([dic[@"errorCode"] isEqualToString:@"0"]) {
99 - [_webView loadHTMLString:[self setHTMLString:dic[@"content"] author:dic[@"author"]] baseURL:nil]; 100 + [_webView loadHTMLString:[self setHTMLString:dic[@"content"] author:dic[@"author"]] baseURL:[NSURL URLWithString:_dictionary[@"pageUrl"]]];
100 isFail = 0; 101 isFail = 0;
101 _refresh.hidden = YES; 102 _refresh.hidden = YES;
102 103