Tutorials

Step-by-step tutorials to help you solve practical tasks with lexbor. Each tutorial includes a complete, working code example that you can compile and run.

Available Tutorials

Intercept Tokenizer Callbacks Before Tree Building

Intercept the tokenizer callback before tokens reach the tree builder. Demonstrates how to inspect, filter, and skip tokens during parsing — for example, removing whitespace-only text nodes from the resulting DOM tree.

Modules used: HTML