GumboText

The struct used to represent TEXT, CDATA, COMMENT, and WHITESPACE elements. This contains just a block of text and its position.

Members

Variables

original_text
GumboStringPiece original_text;

The original text of this node, as a pointer into the original buffer. For comment/cdata nodes, this includes the comment delimiters.

start_pos
GumboSourcePosition start_pos;

The starting position of this node. This corresponds to the position of original_text, before entities are decoded.

text
char* text;

The text of this node, after entities have been parsed and decoded. For comment/cdata nodes, this does not include the comment delimiters.

Meta