code: function replaceHtml(ele, html) {
          var _this = this;
  
          if (ele.classList.contains('raw-text')) {
              return;
          }
          ele.innerHTML = withEscape( // eslint-disable-line no-undef
          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);
              };
          })(html);
      }
docs: replace the sugars in the html content.
  @param {HTMLElement} ele Element witch the resolved html will be set on.
  @param {*} html Html content to be replaced the sugars.