createDocumentFragment(withText:)
Creates a document fragment containing the given text.
Declaration
func createDocumentFragment(withText text: String!) -> DOMDocumentFragment!Parameters
- text:
The text to convert.
Return Value
A DOMDocumentFragment object derived from the source text.
Discussion
This is a convenience method for the createDocumentFragment method in DOMDocument. This method creates a fragment that contains the supplied plain text.