code: function (html) {
              return function (reg, rep) {
                  return _this.htmlSugars.reduce(function (html, _ref) {
                      var _ref2 = _slicedToArray(_ref, 2),
                          regExp = _ref2[0],
                          replace = _ref2[1];
  
                      return html.replace(regExp, replace);
                  }, html).replace(reg, rep);
              };
          }
docs: eslint-disable-line no-undef