text: function escapeHTML(string) {
      if (!string) return "";
  
      return string.replaceAll(`&`, "&amp;")
          .replaceAll(`>`, "&gt;")
          .replaceAll(`<`, "&lt;")
          .replaceAll(`"`, "&quot;")
          .replaceAll(`/`, "&#039;");
  }
  