pub trait NodeTrait {
    fn is_text(&self) -> bool;
fn is_safe_html(&self) -> bool;
fn unwrap_text(&self) -> &str;
fn unwrap_safe_html(&self) -> &str; }
Expand description

additional traits for mt_dom::Node

Required methods

returns true if this is a text node

returns true if this is text node with safe html as the content

unwrap the text content of the text node, panics if it is not a text node

unwrap the html text content of this node, panics if it is not a safe html node

Implementors