Skip to main content

get_node_text_content

Function get_node_text_content 

Source
pub fn get_node_text_content(node: &NodeData) -> Option<&str>
Expand description

Get the text content from a NodeData if it’s a Text node.

Returns the text string if the node is NodeType::Text, otherwise None.