Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

minify html using javascript

var minify = require('html-minifier').minify;
var result = minify('<p title="blah" id="moo">foo</p>', {
  removeAttributeQuotes: true
});
result; // '<p title=blah id=moo>foo</p>'
 
PREVIOUS NEXT
Tagged: #minify #html #javascript
ADD COMMENT
Topic
Name
6+9 =