title: How do I decode HTML entities in swift 2.0?
body: <p>I <a href="https://stackoverflow.com/a/25607542/1187415">found this extension</a> on Stackoverflow. However, there was an error. How do I fix this error?</p>
  
  <pre><code>Cannot invoke initializer for type 'NSAttributedString' with an argument list of type '(data: NSData, options: [String : AnyObject], documentAttributes: NilLiteralConvertible, error: NilLiteralConvertible)'
  </code></pre>
  
  <p>Error is in "let attributedString".</p>
  
  <pre><code>extension String {
      init(htmlEncodedString: String) {
          let encodedData = htmlEncodedString.dataUsingEncoding(NSUTF8StringEncoding)!
          let attributedOptions : [String: AnyObject] = [
              NSDocumentTypeDocumentAttribute: NSHTMLTextDocumentType,
              NSCharacterEncodingDocumentAttribute: NSUTF8StringEncoding
          ]
          let attributedString = NSAttributedString(data: encodedData, options: attributedOptions, documentAttributes: nil, error: nil)! //ERROR HERE!
          self.init(attributedString.string)
      }
  }
  </code></pre>