Skip to main content

tx_element_get_text

Function tx_element_get_text 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn tx_element_get_text( doc: *mut TxDocument, element: TxNodeId, ) -> *const c_char
Expand description

Returns the text content of an element’s first child text node.

Returns null if no text child exists.

§Safety

  • doc must be a valid, non-null pointer to a TxDocument.
  • element must identify an element node.