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.showLocalStorageDialog=function(c,e,k,q,p,t){var x=localStorage.getItem(e);c=new TextareaDialog(this,c,null!=x?JSON.stringify(JSON.parse(x),null,2):"",mxUtils.bind(this,function(C){if(null!=C)try{if(null!=t&&t(C),C==x)this.hideDialog();else{if(0<C.length){var I=JSON.parse(C);localStorage.setItem(e,JSON.stringify(I))}else localStorage.removeItem(e);this.hideDialog();this.alert(mxResources.get("restartForChangeRequired"))}}catch(B){this.handleError(B)}}),null,mxResources.get("close"),
null,null,null,!0,null,null,p,k,q);this.showDialog(c.container,620,460,!0,!1);c.init()};EditorUi.prototype.showBackgroundImageDialog=function(c,e,k,q){c=null!=c?c:mxUtils.bind(this,function(p,t,x,C){t||(p=new ChangePageSetup(this,q?x:null,p),p.ignoreColor=!q,null!=C&&q&&(p.shadowVisible=C),this.editor.graph.model.execute(p))});c=new BackgroundImageDialog(this,c,e,k,q);this.showDialog(c.container,400,q?240:220,!0,!0);c.init()};EditorUi.prototype.showLibraryDialog=function(c,e,k,q,p){c=new LibraryDialog(this,