(function () { // 下面是解析的部分 const chatMap = { "&": "&", "'": "'", "`": "`", '"': """, "<": "<", ">": ">", }; const escapeHTML = (string) => { if (typeof string !== "string") return string; return string.replace(/[&'`"<>]/g, function (match) { return chatMap[match]; }); }; window.drawioConverter = function (xml, idx = new Date().getTime()) { let mxGraphData = { editable: false, highlight: "#0000ff", nav: false, toolbar: null, edit: null, resize: true, lightbox: "open", // "check-visible-state": false, // "auto-fit": false, // move: false, xml, }; const json = JSON.stringify(mxGraphData); return `