Gruntfile.js
function (token, context, chain) {
                  var // Parse the output without any filter
                  unfiltered = Twig.parse.apply(this, [token.output, context]),
                  // A regular expression to find closing and opening tags with spaces between them
                  rBetweenTagSpaces = />\s+</g,
                  // Replace all space between closing and opening html tags
                  output = unfiltered.replace(rBetweenTagSpaces,'><').trim();
                  return {
                    chain: chain,
                    output: output
                  };
                }
function (token, context, chain) {
                  var // Parse the output without any filter
                  unfiltered = Twig.parse.apply(this, [token.output, context]),
                  // A regular expression to find closing and opening tags with spaces between them
                  rBetweenTagSpaces = />\s+</g,
                  // Replace all space between closing and opening html tags
                  output = unfiltered.replace(rBetweenTagSpaces,'><').trim();
                  return {
                    chain: chain,
                    output: output
                  };
                }
function ( token , context , chain ) { var // Parse the output without any filter unfiltered = Twig . parse . apply ( this , [ token . output , context ] ) , // A regular expression to find closing and opening tags with spaces between them rBetweenTagSpaces = / >\s+< / g , // Replace all space between closing and opening html tags output = unfiltered . replace ( rBetweenTagSpaces , '><' ) . trim ( ) ; return { chain : chain , output : output } ; }
Parse the html and return it without any spaces between tags
Parse the html and return it without any spaces between tags