knitr::opts_chunk$set( collapse = TRUE, comment = "#>", fig.path = "README-" )
A binding to the HTML Javascript minifier library: html-minifier
To install
devtools::install_github("csgillespie/minifyHTML")
To use
library("minifyHTML") input = "<!-- foo --><div>baz</div><!-- bar\n\n moo -->" minifyHTML(input)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.