Skip to main content

select_text_within

Function select_text_within 

Source
pub fn select_text_within(
    doc: &Document,
    root: NodeId,
    selector: &str,
) -> QueryResult<Vec<String>>
Expand description

Extracts text content from elements within a subtree matching a CSS selector.

ยงErrors

Returns [QueryError::InvalidSelector] if the selector syntax is invalid.