code: function htmlSanitizer(html, needHtmlText) {
    const $html = $('<div />');
  
    html = html.replace(/<!--[\s\S]*?-->/g, '');
  
    $html.append(html);
  
    removeUnnecessaryTags($html);
    leaveOnlyWhitelistAttribute($html);
  
    return finalizeHtml($html, needHtmlText);
  }
docs: htmlSanitizer
  @param {string|Node} html html or Node
  @param {boolean} [needHtmlText] pass true if need html text
  @returns {string|DocumentFragment} result
  @ignore