nsIScriptableUnescapeHTML

This interface is OBSOLETE and exists solely for legacy extensions.

Methods

unescape(src)

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.

Parameters

src The HTML string to convert to plain text.

parseFragment(fragment, isXML, baseURI, element)

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.

Parameters

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