extract_section_text

Function extract_section_text 

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

Extract text content from a section, handling nested tags

Combines element extraction and tag stripping for convenience.

§Arguments

  • content - The XML content to search
  • section_tag - The section tag name

§Returns

Some(String) with the section text (tags removed), or None if not found