I'm looking for a way to minify my HTML code that's retrieved with Javascript like this
document.getElementById("content").innerHTML;
The HTML is very disorganized and poorly indented but its w3c validated. I came across this plugin https://github.com/kangax/html-minifier But need help implementing with raw JS/jQuery because it only provides instructions for node.js, and my app isn't server-based.