GumboText(3)
π GumboText(3) β the vibe edition π
okay bestie, welcome to GumboText, page 3 of the Gumbo manual β¨ this is literally the little struct that holds every scrap of raw text in your HTML, and she's not complicated, she's just precise. lowkey iconic.
β¨ NAME β¨
GumboText β the struct that carries your text blocks around π
π¦ SYNOPSIS π¦
#include <gumbo.h>
πΈ Data Fields πΈ
const char * text
GumboStringPiece original_text
GumboSourcePosition start_pos
π Detailed Description π
so. GumboText is the struct used to represent TEXT, CDATA, COMMENT, and WHITESPACE elements π she contains just a block of text and its position, and honestly? that's the whole personality. no notes.
π Field Documentation π
const char* GumboText::textβ the actual text of this node, after entities have been parsed and decoded β¨ and for comment/cdata nodes? this does not include the comment delimiters. so you get the good stuff, not the wrapping π«ΆGumboStringPiece GumboText::original_textβ the original text of this node, handed to you as a pointer into the original buffer π and for comment/cdata nodes, this one does include the comment delimiters. yep, she comes with the packaging πGumboSourcePosition GumboText::start_posβ the starting position of this node π― and listen: this corresponds to the position oforiginal_text, before entities are decoded. so if you're eyeballing the raw buffer, this is your girl. periodt.
π§ Author π§
Generated automatically by Doxygen for Gumbo from the source code. so yeah, a robot wrote her, but she still ate πβ¨
π bye bestie π
this was GumboText, page 3 of the Gumbo manual, from Version 0.12.1, dated Fri Sep 19 2025 00:00:00 πΈ go forth and parse some text, you've got this fr fr πππ¦
π¦ where this page comes from
- fedora 43: gumbo-parser-devel 1:0.12.1-7.fc43 Β· Apache-2.0
- fedora 43: gumbo-parser-devel 1:0.12.1-7.fc43 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms