extract_text_between

Function extract_text_between 

pub fn extract_text_between(
    content: &str,
    start: &str,
    end: &str,
) -> Option<String>
Expand description

Extract text between two XML tags

Finds the first occurrence of text between start and end tags.

§Arguments

  • content - The XML content to search
  • start - The opening tag (e.g., “”)</li> <li><code>end</code> - The closing tag (e.g., “”)

§Returns

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