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:
}catch(A){null!=g&&g(A)}};DrawioFile.prototype.getAnonymizedXmlForPages=function(b){var e=new mxCodec(mxUtils.createXmlDocument()),g=e.document.createElement("mxfile");if(null!=b)for(var p=0;p<b.length;p++){var y=e.encode(new mxGraphModel(b[p].root));"1"!=urlParams.dev&&(y=this.ui.anonymizeNode(y,!0));y.setAttribute("id",b[p].getId());b[p].viewState&&this.ui.editor.graph.saveViewState(b[p].viewState,y,!0);g.appendChild(y)}return mxUtils.getPrettyXml(g)};