GumboText(3)

πŸ“¦
version 0.12.1 Β· 4 versions
, in fedora 43

πŸ’– 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 of original_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