Tidy Up and Test XPath Queries on HTML and XML Content
Overview
HTML documents can be beautiful and pristine. They can also be wretched, evil, malformed demon-spawn. Now, you can tidy up that HTML and XHTML before processing it with your favorite angle-bracket crunching tools, going beyond the limited tidying that 'libxml2' affords in the 'XML' and 'xml2' packages and taming even the ugliest HTML code generated by the likes of Google Docs and Microsoft Word. It's also possible to use the functions provided to format or "pretty print" HTML content as it is being tidied. Utilities are also included that make it possible to view formatted and "pretty printed" HTML/XML content from HTML/XML document objects, nodes, node sets and plain character HTML/XML using 'vkbeautify' (by Vadim Kiryukhin) and 'highlight.js' (by Ivan Sagalaev). Also (optionally) enables filtering of nodes via XPath or viewing an HTML/XML document in "tree" view using 'XMLDisplay' (by Lev Muchnik). See https://github.com/vkiryukhin/vkBeautify and http://www.levmuchnik.net/Content/ProgrammingTips/WEB/XMLDisplay/DisplayXMLFileWithJavascript.html for more information about 'vkbeautify' and 'XMLDisplay', respectively.
Install
Health
CRAN check results are not tracked yet.
Documentation
- Help pages
- 8includes a package overview page
- Examples that run
- 100%4 run in a plain check (2 of them under a condition)
- Exported functions with examples
- 57%
- Documented parameters
- 87%
- Return-value docs
- 14%
- Help pages citing references
- 50%
Downloads
Dependencies
Code & Tests
People & History
Pick two releases to compare their code metrics.
- RR 4.3.0 released · 2023-04-21
- archivedRemoved from CRAN2022-08-16the request of the maintainer
- RR 4.2.0 released · 2022-04-22
- RR 4.1.0 released · 2021-05-18
- RR 4.0.0 released · 2020-04-24
- 0.5.02019-10-03 · diff ↗
- RR 3.6.0 released · 2019-04-26
- RR 3.5.0 released · 2018-04-23
- 0.4.02017-09-29 · diff ↗
- RR 3.4.0 released · 2017-04-21
- 0.3.12017-02-02 · diff ↗
- 0.3.02016-10-16 · diff ↗ ·
added 9 exports
highlight_styles, html_tree_view, html_view, renderXmltreeview, renderXmlview, xml_tree_view, xml_view, xmltreeviewOutput, xmlviewOutput - 0.2.02016-09-11
- RR 3.3.0 released · 2016-05-03
Package metadata
- First published
- 2016-09-11
- Total releases
- 5 / 10 yrs
- License
- MIT + file LICENSE OSI · relicensed from AGPL + file LICENSE in 0.3.0
- Copyright
- See inst/COPYRIGHTS in the package
- Minimum R
- ≥ 3.2.0
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("htmltidy")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-25, which the citation names so these numbers can be found later. More on citing and the projects behind them.