title: How to display HTML text in TextView
body: <p>I have a string containing HTML. I would like to display the HTML in a TextView control. I found some code and tried it:</p>
  
  <pre><code>def = "some html text"
  
  definition.attributedText = NSAttributedString(
    data: def.dataUsingEncoding(NSUnicodeStringEncoding, allowLossyConversion: true)!,
    options: [ NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType],
        documentAttributes: nil,
        error: nil)
  </code></pre>
  
  <p>On the option I get an error:</p>
  
  <blockquote>
    <p>[String: String] is not convertible to string.</p>
  </blockquote>
  
  <p>Can someone help me display HTML in a TextView?</p>