htmltidy: Tidy Up and Test XPath Queries on HTML and XML Content
Version 0.4.0

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 'xml-viewer' (by Julian Gruber). See and for more information about 'vkbeautify' and 'xml-viewer', respectively.

Getting started

Package details

AuthorBob Rudis [aut, cre], Dave Raggett [ctb, aut] (Original HTML Tidy library), Charles Reitzel [ctb, aut] (Modern HTML Tidy library), Björn Höhrmann [ctb, aut] (HTML5 Support), Kenton Russell [aut, ctb] (xml-viewer integration), Vadim Kiryukhin [ctb, cph] (vkbeautify library), Ivan Sagalaev [ctb, cph] (highlight.js library), Julian Gruber [ctb, cph] (xml-viewer library)
Date of publication2017-09-29 15:38:10 UTC
MaintainerBob Rudis <[email protected]>
LicenseMIT + file LICENSE
Version0.4.0
URL https://github.com/hrbrmstr/htmltidy
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("htmltidy")

Try the htmltidy package in your browser

Any scripts or data that you put into this service are public.

htmltidy documentation built on Sept. 29, 2017, 5:09 p.m.