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)
#> [1] "<div>baz</div>"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.