code: function _clearHTMLComments(html) {
          var cStart = '<!--',
              cEnd = '-->',
              beg = html.indexOf(cStart),
              end = 0;
  
          while (beg !== -1) {
              end = html.indexOf(cEnd, beg + 4);
  
              if (end === -1) {
                  break;
              }
  
              var comment = html.substring(beg, end + 3);
  
              if (comment.indexOf("[if") !== -1 || comment.indexOf("![endif]") !== -1) { // skip
                  beg = html.indexOf(cStart, end + 3);
                  continue;
              }
  
              html = html.replace(comment, "");
              beg = html.indexOf(cStart, end + 3);
          }
  
          return html;
      }
docs: Remover of the html comment blocks
  @param html
  @returns {*}
  @private