Commit 9887e758e122bce93d6667e3b8f4b907c97b5a65
1 parent
2f5fac87
no message
Showing
1 changed file
with
2 additions
and
1 deletions
CNLiveScioLive/Pages/Home/新闻详情/OldController/OldArticleDetailViewController.m
| ... | ... | @@ -76,6 +76,7 @@ |
| 76 | 76 | "</body>" |
| 77 | 77 | "</html>",[_dictionary objectForKey:@"title"],[_dictionary objectForKey:@"createDate"],[NSString stringWithFormat:@"%@:%@",CustomStr(@"Source"), author?author:@"国新网"],fontArray[fontIndex],content]; |
| 78 | 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 | 80 | NSLog(@"htmlcontent = %@",htmlcontent); |
| 80 | 81 | return htmlcontent; |
| 81 | 82 | } |
| ... | ... | @@ -96,7 +97,7 @@ |
| 96 | 97 | NSDictionary *dic = [NSDictionary dictionaryWithDictionary:responseObject]; |
| 97 | 98 | // NSLog(@"%@",dic); |
| 98 | 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 | 101 | isFail = 0; |
| 101 | 102 | _refresh.hidden = YES; |
| 102 | 103 | ... | ... |