如何将NSAttributedString解码为HTML字符串

时间:2017-02-04 13:49:59

标签: ios objective-c encryption nsattributedstring

我使用以下代码将HTML字符串编码为属性..

NSAttributedString *attributedString = [[NSAttributedString alloc]
                                                initWithData: [itemDescribtionStr dataUsingEncoding:NSUnicodeStringEncoding]
                                                options: @{ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType }
                                                documentAttributes: nil
                                                error: nil
                                                ];

如何将此字符串解码为HTML字符串?

0 个答案:

没有答案