This interface is OBSOLETE and exists solely for legacy extensions.
Converts HTML to plain text. This is equivalent to calling
nsIParserUtils::convertToPlainText(src,
nsIDocumentEncoder::OutputSelectionOnly |
nsIDocumentEncoder::OutputAbsoluteLinks, 0).
You should call nsIParserUtils::convertToPlainText() instead of calling
this method.
src | The HTML string to convert to plain text. |
Parses markup into a sanitized document fragment. This is equivalent to
calling nsIParserUtils::parseFragment(fragment, 0, isXML, baseURI,
element).
You should call nsIParserUtils::parseFragment() instead of calling this
method.
fragment | the input markup |
isXML | true if |fragment| is XML and false if HTML |
baseURI | the base URL for this fragment |
element | the context node for the fragment parsing algorithm |