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:
lb=db.ownerDocument,kb=null!=lb.createElementNS?lb.createElementNS(mxConstants.NS_SVG,"g"):lb.createElement("g");db.appendChild(kb);var Pa=this.createSvgCanvas(kb);Pa.foOffset=ea?-.5:0;Pa.textOffset=ea?-.5:0;Pa.imageOffset=ea?-.5:0;Pa.translate(Math.floor(Q/L-$a.x/Ra),Math.floor(Q/L-$a.y/Ra));var eb=document.createElement("div"),jb=Pa.getAlternateText;Pa.getAlternateText=function(nb,ub,gb,tb,ob,pb,hb,Ab,Db,Bb,vb,zb,yb){if(null!=pb&&0<this.state.fontSize)try{mxUtils.isNode(pb)?pb=pb.innerText:(eb.innerHTML=
pb,pb=mxUtils.extractTextWithWhitespace(eb.childNodes));for(var Cb=Math.ceil(2*tb/this.state.fontSize),c=[],m=0,u=0;(0==Cb||m<Cb)&&u<pb.length;){var n=pb.charCodeAt(u);if(10==n||13==n){if(0<m)break}else c.push(pb.charAt(u)),255>n&&m++;u++}c.length<pb.length&&1<pb.length-c.length&&(pb=mxUtils.trim(c.join(""))+"...");return pb}catch(t){return jb.apply(this,arguments)}else return jb.apply(this,arguments)};var ib=this.backgroundImage;if(null!=ib){x=Ra/L;var mb=this.view.translate;ab=new mxRectangle((ib.x+