I would like to display html formatted text on a UILabel in IOS.
UILabel
In Android, it has api like this .setText(Html.fromHtml(somestri
.setText(Html.fromHtml(somestri
for Swift 2.0:
var attrStr = try! NSAttributedString( data: "text".dataUsingEncoding(NSUnicodeStringEncoding, allowLossyConversion: true)!, options: [ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType], documentAttributes: nil) label.attributedText = attrStr