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

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.

Browse man pages Browse package API and functions Browse package files

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-02-02 01:01:18
MaintainerBob Rudis <bob@rud.is>
LicenseMIT + file LICENSE
Version0.3.1
URL https://github.com/hrbrmstr/htmltidy
Package repositoryView on CRAN
InstallationInstall the latest version of this package by entering the following in R:
install.packages("htmltidy")

Man pages

highlight_styles: List available HTML/XML highlight styles
htmltidy: Tidy Up and Test XPath Queries on HTML and XML Content
renderXmlview: Widget render function for use in Shiny
tidy_html: Tidy or "Pretty Print" HTML/XHTML Documents
xml_tree_view: HTML/XML tree viewer
xmltreeview-shiny: Shiny bindings for xmltreeview
xml_view: HTML/XML pretty printer and viewer
xmlviewOutput: Widget output function for use in Shiny

Functions

highlight_styles Man page Source code
html_tree_view Man page
html_view Man page
htmltidy Man page
htmltidy-package Man page
renderXmltreeview Man page Source code
renderXmlview Man page Source code
tidy_html Man page Source code
tidy_html.HTMLInternalDocument Man page Source code
tidy_html.character Man page Source code
tidy_html.connection Man page Source code
tidy_html.default Man page Source code
tidy_html.raw Man page Source code
tidy_html.response Man page Source code
tidy_html.xml_document Man page Source code
tidy_html_int Source code
xml_tree_view Man page Source code
xml_view Man page Source code
xmltreeview-shiny Man page
xmltreeviewOutput Man page Source code
xmlviewOutput Man page Source code

Files

inst
inst/htmlwidgets
inst/htmlwidgets/lib
inst/htmlwidgets/lib/highlightjs
inst/htmlwidgets/lib/highlightjs/Makefile
inst/htmlwidgets/lib/highlightjs/highlight.pack.min.js
inst/htmlwidgets/lib/highlightjs/composer.json
inst/htmlwidgets/lib/highlightjs/component.json
inst/htmlwidgets/lib/highlightjs/README.md
inst/htmlwidgets/lib/highlightjs/bower.json
inst/htmlwidgets/lib/highlightjs/highlight.pack.js
inst/htmlwidgets/lib/highlightjs/styles
inst/htmlwidgets/lib/highlightjs/styles/atelier-cave-light.css
inst/htmlwidgets/lib/highlightjs/styles/school-book.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-heath.dark.css
inst/htmlwidgets/lib/highlightjs/styles/googlecode.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-sulphurpool-dark.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-sulphurpool-light.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-sulphurpool.dark.css
inst/htmlwidgets/lib/highlightjs/styles/vs.css
inst/htmlwidgets/lib/highlightjs/styles/agate.css
inst/htmlwidgets/lib/highlightjs/styles/paraiso.light.css
inst/htmlwidgets/lib/highlightjs/styles/solarized-light.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-dune-light.css
inst/htmlwidgets/lib/highlightjs/styles/brown_papersq.png
inst/htmlwidgets/lib/highlightjs/styles/brown_paper.css
inst/htmlwidgets/lib/highlightjs/styles/brown-papersq.png
inst/htmlwidgets/lib/highlightjs/styles/tomorrow-night.css
inst/htmlwidgets/lib/highlightjs/styles/codepen-embed.css
inst/htmlwidgets/lib/highlightjs/styles/ir-black.css
inst/htmlwidgets/lib/highlightjs/styles/ascetic.css
inst/htmlwidgets/lib/highlightjs/styles/monokai_sublime.css
inst/htmlwidgets/lib/highlightjs/styles/paraiso.dark.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-plateau.light.css
inst/htmlwidgets/lib/highlightjs/styles/arta.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-plateau-dark.css
inst/htmlwidgets/lib/highlightjs/styles/monokai-sublime.css
inst/htmlwidgets/lib/highlightjs/styles/hopscotch.css
inst/htmlwidgets/lib/highlightjs/styles/pojoaque.css
inst/htmlwidgets/lib/highlightjs/styles/dark.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-dune-dark.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-cave.light.css
inst/htmlwidgets/lib/highlightjs/styles/kimbie.light.css
inst/htmlwidgets/lib/highlightjs/styles/school_book.png
inst/htmlwidgets/lib/highlightjs/styles/solarized-dark.css
inst/htmlwidgets/lib/highlightjs/styles/tomorrow.css
inst/htmlwidgets/lib/highlightjs/styles/mono-blue.css
inst/htmlwidgets/lib/highlightjs/styles/monokai.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-seaside.dark.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-plateau-light.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-savanna-light.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-forest-light.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-savanna.dark.css
inst/htmlwidgets/lib/highlightjs/styles/solarized_light.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-lakeside-dark.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-lakeside.dark.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-estuary.dark.css
inst/htmlwidgets/lib/highlightjs/styles/school-book.png
inst/htmlwidgets/lib/highlightjs/styles/atelier-forest-dark.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-estuary-dark.css
inst/htmlwidgets/lib/highlightjs/styles/github-gist.css
inst/htmlwidgets/lib/highlightjs/styles/far.css
inst/htmlwidgets/lib/highlightjs/styles/foundation.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-dune.light.css
inst/htmlwidgets/lib/highlightjs/styles/color-brewer.css
inst/htmlwidgets/lib/highlightjs/styles/idea.css
inst/htmlwidgets/lib/highlightjs/styles/github.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-forest.dark.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-estuary-light.css
inst/htmlwidgets/lib/highlightjs/styles/hybrid.css
inst/htmlwidgets/lib/highlightjs/styles/darkula.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-savanna-dark.css
inst/htmlwidgets/lib/highlightjs/styles/ir_black.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-lakeside-light.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-heath.light.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-sulphurpool.light.css
inst/htmlwidgets/lib/highlightjs/styles/pojoaque.jpg
inst/htmlwidgets/lib/highlightjs/styles/tomorrow-night-bright.css
inst/htmlwidgets/lib/highlightjs/styles/school_book.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-seaside-light.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-seaside-dark.css
inst/htmlwidgets/lib/highlightjs/styles/grayscale.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-savanna.light.css
inst/htmlwidgets/lib/highlightjs/styles/brown-paper.css
inst/htmlwidgets/lib/highlightjs/styles/kimbie.dark.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-lakeside.light.css
inst/htmlwidgets/lib/highlightjs/styles/androidstudio.css
inst/htmlwidgets/lib/highlightjs/styles/paraiso-dark.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-seaside.light.css
inst/htmlwidgets/lib/highlightjs/styles/docco.css
inst/htmlwidgets/lib/highlightjs/styles/magula.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-heath-dark.css
inst/htmlwidgets/lib/highlightjs/styles/railscasts.css
inst/htmlwidgets/lib/highlightjs/styles/paraiso-light.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-plateau.dark.css
inst/htmlwidgets/lib/highlightjs/styles/solarized_dark.css
inst/htmlwidgets/lib/highlightjs/styles/xcode.css
inst/htmlwidgets/lib/highlightjs/styles/rainbow.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-dune.dark.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-heath-light.css
inst/htmlwidgets/lib/highlightjs/styles/default.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-cave-dark.css
inst/htmlwidgets/lib/highlightjs/styles/zenburn.css
inst/htmlwidgets/lib/highlightjs/styles/tomorrow-night-eighties.css
inst/htmlwidgets/lib/highlightjs/styles/tomorrow-night-blue.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-cave.dark.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-estuary.light.css
inst/htmlwidgets/lib/highlightjs/styles/sunburst.css
inst/htmlwidgets/lib/highlightjs/styles/obsidian.css
inst/htmlwidgets/lib/highlightjs/styles/atelier-forest.light.css
inst/htmlwidgets/lib/highlightjs/LICENSE
inst/htmlwidgets/lib/vkbeautify
inst/htmlwidgets/lib/vkbeautify/wdgt.css
inst/htmlwidgets/lib/vkbeautify/vkbeautify.js
inst/htmlwidgets/lib/vkbeautify/rlogo.png
inst/htmlwidgets/lib/vkbeautify/reset.png
inst/htmlwidgets/lib/xml-viewer
inst/htmlwidgets/lib/xml-viewer/xml-viewer.js
inst/htmlwidgets/lib/xml-viewer/README.md
inst/htmlwidgets/lib/xml-viewer/package.json
inst/htmlwidgets/lib/xml-viewer/treewdgt.css
inst/htmlwidgets/xmlview.js
inst/htmlwidgets/xmltreeview.js
inst/htmlwidgets/xmltreeview.yaml
inst/htmlwidgets/xmlview.yaml
inst/COPYRIGHTS
inst/extdata
inst/extdata/getHistory.xml
inst/extdata/input.xml
inst/extdata/dwml.xml
tests
tests/testthat.R
tests/testthat
tests/testthat/test-htmltidy.R
src
src/access.c
src/parser.h
src/sprtf.h
src/Makevars
src/streamio.c
src/attrask.c
src/language.c
src/charsets.h
src/tidy-int.h
src/tagask.c
src/utf8.c
src/attrs.c
src/tidybuffio.h
src/clean.c
src/tidy.h
src/iconvtc.c
src/version.h
src/message.c
src/iconvtc.h
src/tags.h
src/config.c
src/streamio.h
src/message.h
src/language_en.h
src/language_es_mx.h
src/clean.h
src/fileio.h
src/tidyenum.h
src/attrdict.h
src/tidylib.c
src/config.h
src/tmbstr.c
src/attrs.h
src/lexer.c
src/forward.h
src/language_es.h
src/charsets.c
src/istack.c
src/buffio.h
src/entities.h
src/sprtf.cpp
src/attrget.c
src/htmltidy.cpp
src/gdoc.h
src/language_fr.h
src/utf8.h
src/pprint.h
src/language_en_gb.h
src/fileio.c
src/entities.c
src/buffio.c
src/mappedio.c
src/win32tc.c
src/parser.c
src/tags.c
src/lexer.h
src/language.h
src/language_zh_cn.h
src/alloc.cpp
src/pprint.c
src/RcppExports.cpp
src/attrdict.c
src/access.h
src/gdoc.c
src/platform.h
src/tmbstr.h
src/mappedio.h
src/tidyplatform.h
src/win32tc.h
NAMESPACE
NEWS.md
R
R/xmltreeview.R
R/shiny.R
R/RcppExports.R
R/response.r
R/shiny-tree-view.R
R/htmltidy-package.r
R/xmlview.R
R/tidy.r
README.md
MD5
DESCRIPTION
man
man/highlight_styles.Rd
man/xmltreeview-shiny.Rd
man/xmlviewOutput.Rd
man/xml_view.Rd
man/tidy_html.Rd
man/htmltidy.Rd
man/renderXmlview.Rd
man/xml_tree_view.Rd
LICENSE
htmltidy documentation built on May 20, 2017, 5:05 a.m.