Would you like to clone this notebook?

When you clone a notebook you are able to make changes without affecting the original notebook.

Cancel

html-minifier

node v14.20.1
version: 1.0.0
endpointsharetweet
const HTMLMinifier = require("html-minifier"); const minify = HTMLMinifier.minify; const minifiedHtml = minify( '<h1 class="primary" id="main">Title</h1>', { removeAttributeQuotes: true } ); console.log(minifiedHtml); // '<h1 class=primary id=main>Title</h1>'
Loading…

no comments

    sign in to comment