pub trait ElementHelpers {
// Required method
fn text_with_newlines(&self) -> Option<String>;
}Required Methods§
Sourcefn text_with_newlines(&self) -> Option<String>
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.