Parses real-world 'HTML' with a bundled copy of the 'Gumbo' parser (<https://codeberg.org/gumbo-parser/gumbo-parser>), which follows the 'WHATWG' parsing algorithm, so that no system library is required. Documents become immutable trees navigated with a documented subset of 'CSS' selectors. Attributes, text, lists, tables, links, forms and page metadata ('JSON-LD', microdata) are extracted into ordinary character vectors, lists and data frames, and nodes convert to 'Markdown'. Input is a string, raw bytes, a file, a URL or a connection, and raw input is decoded as browsers decode it, from a byte-order mark or a '<meta>' declaration. Parsing is bounded by limits on input size, native memory and nesting depth.
| Version: | 0.1.0 |
| Depends: | R (≥ 4.1) |
| Suggests: | jsonlite, knitr, rmarkdown, testthat (≥ 3.0.0), withr |
| Published: | 2026-10-06 |
| DOI: | 10.32614/CRAN.package.zuhtml (may not be active yet) |
| Author: | Pedro Baltazar [aut, cre, cph], Google Inc. [cph] (Gumbo, bundled in src/vendor/gumbo), Bjoern Hoehrmann [cph] (UTF-8 decoder in src/vendor/gumbo/utf8.c) |
| Maintainer: | Pedro Baltazar <pedrobtz at gmail.com> |
| BugReports: | https://github.com/pedrobtz/zuhtml/issues |
| License: | MIT + file LICENSE |
| Copyright: | file inst/COPYRIGHTS zuhtml copyright details |
| URL: | https://github.com/pedrobtz/zuhtml, https://pedrobtz.github.io/zuhtml/ |
| NeedsCompilation: | yes |
| Materials: | README, NEWS |
| CRAN checks: | zuhtml results |
| Reference manual: | zuhtml.html , zuhtml.pdf |
| Vignettes: |
Limits, encodings and safety (source, R code) CSS selectors (source, R code) Tables and lists (source, R code) Getting started with zuhtml (source, R code) |
| Package source: | zuhtml_0.1.0.tar.gz |
| Windows binaries: | r-devel: not available, r-release: not available, r-oldrel: not available |
| macOS binaries: | r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): not available, r-oldrel (x86_64): not available |
Please use the canonical form https://CRAN.R-project.org/package=zuhtml to link to this page.