ElementHelpers

Trait ElementHelpers 

Source
pub trait ElementHelpers {
    // Required method
    fn text_with_newlines(&self) -> Option<String>;
}

Required Methods§

Source

fn text_with_newlines(&self) -> Option<String>

Get the text of the element(s) and their children.

This is different from Element::text in that <p> and <br> are considered and linebreaks will be inserted.

Implementors§