var attrStr = try! NSAttributedString(
data: "text".dataUsingEncoding(NSUnicodeStringEncoding, allowLossyConversion: true)!,
options: [ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType],
documentAttributes: nil)
label.attributedText = attrStr
On java
myTextView.setText(Html.fromHtml("
Description here
"));
Title
Description here
"));
沒有留言:
張貼留言