Skip to main content

new_text

Function new_text 

Source
pub unsafe fn new_text(content: *const xmlChar) -> *mut _xmlNode
Expand description

Create a new text node.

§UPSTREAM-PARITY

xmlNodePtr xmlNewText(const xmlChar *content);

Creates a text node with the given content. If content is NULL, creates an empty text node.

§SAFETY

  • content must be a valid null-terminated string or NULL.