Initializes a new attributed string object from the data at the given URL.
- iOS 7.0–9.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- watchOS 2.0–2.0Deprecated
NSURLobject specifying the document to load.
NULL, returns a dictionary with various document-wide attributes accessible via document attribute keys.
An in-out variable containing an encountered error, if any.
Returns an initialized attributed string object, or
nil if the data can’t be decoded.
The HTML importer should not be called from a background thread (that is, the
options dictionary includes
document with a value of
html). It will try to synchronize with the main thread, fail, and time out. Calling it from the main thread works (but can still time out if the HTML contains references to external resources, which should be avoided at all costs). The HTML import mechanism is meant for implementing something like markdown (that is, text styles, colors, and so on), not for general HTML import.