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:
V=[];null!=P;){var l=P.nextSibling;0>mxUtils.indexOf(this.toolbar.staticElements,P)&&(P.parentNode.removeChild(P),V.push(P));P=l}P=this.toolbar.fontMenu;l=this.toolbar.sizeMenu;if(null==fa)this.toolbar.createTextToolbar();else{for(var B=0;B<fa.length;B++)this.toolbar.container.appendChild(fa[B]);this.toolbar.fontMenu=G;this.toolbar.sizeMenu=ja}O=y.cellEditor.isContentEditing();G=P;ja=l;fa=V}}),ia=y.cellEditor.startEditing;y.cellEditor.startEditing=function(){ia.apply(this,arguments);ca();if(y.cellEditor.isContentEditing()){var P=
!1,V=function(){P||(P=!0,window.setTimeout(function(){var l=y.getSelectedEditingElement();null!=l&&(l=mxUtils.getCurrentStyle(l),null!=l&&null!=p.toolbar&&(p.toolbar.setFontName(Graph.stripQuotes(l.fontFamily)),p.toolbar.setFontSize(parseInt(l.fontSize))));P=!1},0))};mxEvent.addListener(y.cellEditor.textarea,"input",V);mxEvent.addListener(y.cellEditor.textarea,"touchend",V);mxEvent.addListener(y.cellEditor.textarea,"mouseup",V);mxEvent.addListener(y.cellEditor.textarea,"keyup",V);V()}};var ma=y.cellEditor.stopEditing;