What would the JavaScript regex be to minify contents of HTML. Note that I only want to remove spaces that are >2 and nothing below.
I also want to replace single quotat
var s = ` foo bar baz a ` console.log( s.replace(/\s{2,}/g, ' ').replace(/\'/g, '"') )
should do the job for you