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]
pub fn coerce<T: nsIScriptableUnescapeHTMLCoerce>(&self) -> &T
[src]
Cast this nsIScriptableUnescapeHTML
to one of its base interfaces.
impl nsIScriptableUnescapeHTML
[src]
pub unsafe fn Unescape(
&self,
src: &nsAString,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
src: &nsAString,
_retval: &mut nsAString
) -> nsresult
/**
* 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);
pub unsafe fn ParseFragment(
&self,
fragment: &nsAString,
isXML: bool,
baseURI: *const nsIURI,
element: *const nsIDOMElement,
_retval: *mut *const nsIDOMDocumentFragment
) -> nsresult
[src]
&self,
fragment: &nsAString,
isXML: bool,
baseURI: *const nsIURI,
element: *const nsIDOMElement,
_retval: *mut *const nsIDOMDocumentFragment
) -> nsresult
/**
* 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>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIScriptableUnescapeHTML
[src]
const IID: nsIID
IID: nsIID = nsID(984761513, 61597, 17626, [158, 63, 238, 77, 103, 54, 127, 45])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[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]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIScriptableUnescapeHTML
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.