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:
EditorUi.prototype.handleError=function(b,e,g,p,y){b=null!=b&&null!=b.error?b.error:b;if(null!=b||null!=e){y=mxUtils.htmlEntities(mxResources.get("unknownError"));var q=mxResources.get("ok");e=null!=e?e:mxResources.get("error");null!=b&&null!=b.message&&(y=mxUtils.htmlEntities(b.message));this.showError(e,y,q,g,null,null,null,null,null,null,null,null,p?g:null)}else null!=g&&g()};