Language: JavaScript
Label: safe
CWE: CWE-79 \u2014 Improper Neutralization of Input During Web Page Generation ('Cross-site Scripting')
The product does not neutralize or incorrectly neutralizes user-controllable input before it is placed in output that is used as a web page that is served to other users.

Code:
};var e=Editor.prototype.getGraphXml;Editor.prototype.getGraphXml=function(l,B){l=null!=l?l:!0;var N=e.apply(this,arguments);null!=this.graph.currentStyle&&"default-style2"!=this.graph.currentStyle&&N.setAttribute("style",this.graph.currentStyle);var Z=this.graph.getBackgroundImageObject(this.graph.backgroundImage,B);null!=Z&&N.setAttribute("backgroundImage",JSON.stringify(Z));N.setAttribute("math",this.graph.mathEnabled?"1":"0");N.setAttribute("shadow",this.graph.shadowVisible?"1":"0");null!=this.graph.extFonts&&
0<this.graph.extFonts.length&&(Z=this.graph.extFonts.map(function(U){return U.name+"^"+U.url}),N.setAttribute("extFonts",Z.join("|")));return N};Editor.prototype.isDataSvg=function(l){try{var B=mxUtils.parseXml(l).documentElement.getAttribute("content");if(null!=B&&(null!=B&&"<"!=B.charAt(0)&&"%"!=B.charAt(0)&&(B=unescape(window.atob?atob(B):Base64.decode(cont,B))),null!=B&&"%"==B.charAt(0)&&(B=decodeURIComponent(B)),null!=B&&0<B.length)){var N=mxUtils.parseXml(B).documentElement;return"mxfile"==