htmltidy: Clean Up or Pretty Print Gnarly HTML and XHTML
- CRAN: http://cran.r-project.org/web/packages/htmltidy/index.html
- GitHub: https://github.com/hrbrmstr/htmltidy
> library(htmltidy)
バージョン: 0.3.0
関数名 | 概略 |
---|---|
htmltidy |
Clean Up or Pretty Print Gnarly HTML and XHTML |
tidy_html |
Tidy or "Pretty Print" HTML/XHTML Documents |
htmltidy
> opts <- list(
+ TidyDocType="html5",
+ TidyMakeClean=TRUE,
+ TidyHideComments=TRUE,
+ TidyIndentContent=TRUE,
+ TidyWrapLen=200
+ )
>
> txt <- paste0(
+ c("<html><head><style>p { color: red; }</style><body><!-- ===== body ====== -->",
+ "<p>Test</p></body><!--Default Zone --> <!--Default Zone End--></html>"),
+ collapse="")
tidy_html
> tidy_html
function (content, options = list(TidyXhtmlOut = TRUE), verbose = FALSE)
{
UseMethod("tidy_html")
}
<environment: namespace:htmltidy>