Skip to main content

read_element_text

Function read_element_text 

Source
pub fn read_element_text(
    reader: &mut Reader<&[u8]>,
    start_name: QName<'_>,
) -> String
Expand description

Read the full text content of the element that start_name opened, resolving entity references.

This is the event-loop counterpart to decode_escaped: it consumes events up to the matching end tag, concatenating Event::Text, Event::CData and Event::GeneralRef payloads.