extract_element_content

Function extract_element_content 

pub fn extract_element_content(content: &str, tag: &str) -> Option<String>
Expand description

Extract element content with its tag name

Finds the first occurrence of an XML element and returns its inner content.

§Arguments

  • content - The XML content to search
  • tag - The tag name (e.g., “section”)

§Returns

Some(String) with the element’s inner content, or None if not found