Struct xpcom::interfaces::nsIScriptableUnescapeHTML [] [src]

#[repr(C)]
pub struct nsIScriptableUnescapeHTML { /* fields omitted */ }

interface nsIScriptableUnescapeHTML : nsISupports

/**
 * This interface is OBSOLETE and exists solely for legacy extensions.
 */

Methods

impl nsIScriptableUnescapeHTML
[src]

[src]

Cast this nsIScriptableUnescapeHTML to one of its base interfaces.

impl nsIScriptableUnescapeHTML
[src]

[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.
   *
   * @param src The HTML string to convert to plain text.
   */

AString unescape (in AString src);

[src]

/**
   * 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.
   * @param fragment the input markup
   * @param isXML true if |fragment| is XML and false if HTML
   * @param baseURI the base URL for this fragment
   * @param element the context node for the fragment parsing algorithm
   */

nsIDOMDocumentFragment parseFragment (in AString fragment, in boolean isXML, in nsIURI baseURI, in nsIDOMElement element);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for nsIScriptableUnescapeHTML
[src]

IID: nsIID = nsID(984761513, 61597, 17626, [158, 63, 238, 77, 103, 54, 127, 45])

[src]

Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more

impl RefCounted for nsIScriptableUnescapeHTML
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIScriptableUnescapeHTML
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.