code: function prepareTemplate(html) {
  
          var ESCAPE_STRING = /\s{2,}/g ,
              ESCAPE_CARRIAGE = /(\r)|(\n)|(\r\n)/g;
  
          return html.replace(ESCAPE_STRING, ' ').replace(ESCAPE_CARRIAGE, '');
      }
docs: Please see the Grunt documentation for more information regarding task creation: http://gruntjs.com/creating-tasks