获取包含html代码字段的内容

NSString *htmlStr =  "\U6697\U793a\U6cd5\U6492\U65e6\U98de\U6d12\U554a\U591a\U5c11\U53d1\U58eb\U5927\U592b\U6492\U7b54\U590d";
         NSMutableAttributedString * attrString =[[NSMutableAttributedString alloc] initWithData:[htmlStr dataUsingEncoding:NSUnicodeStringEncoding]options:@{NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType}documentAttributes:nil error:nil];
        NSString *str = [attrString string];

你可能感兴趣的:(获取包含html代码字段的内容)