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:
g&&g(q)}}),null,null,null,mxUtils.bind(this,function(T){null!=g&&g(T)}),null,null,t,null,v.shadowVisible,null,v,u,null,null,null,"diagram",null)}catch(T){null!=g&&g(T)}};EditorUi.prototype.getEmbeddedSvg=function(d,g,n,t,u,v,B,H,L,G,T,p,q){H=null!=H?H:!0;T=null!=T?T:0;B=null!=L?L:g.background;B==mxConstants.NONE&&(B=null);v=g.getSvg(B,G,T,null,null,v,null,null,null,g.shadowVisible||p,null,q,"diagram");(g.shadowVisible||p)&&g.addSvgShadow(v,null,null,0==T);null!=d&&v.setAttribute("content",d);null!=
n&&v.setAttribute("resource",n);var C=mxUtils.bind(this,function(J){J=(t?"":Graph.xmlDeclaration+"\n"+Graph.svgFileComment+"\n"+Graph.svgDoctype+"\n")+mxUtils.getXml(J);null!=u&&u(J);return J});g.mathEnabled&&this.editor.addMathCss(v);if(null!=u)this.embedFonts(v,mxUtils.bind(this,function(J){H?this.editor.convertImages(J,mxUtils.bind(this,function(F){C(F)})):C(J)}));else return C(v)};EditorUi.prototype.embedFonts=function(d,g){this.editor.loadFonts(mxUtils.bind(this,function(){try{null!=this.editor.resolvedFontCss&&