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:
return""!=x};mxCellEditor.prototype.insertTab=function(x){var L=this.textarea.ownerDocument.defaultView.getSelection(),Q=L.getRangeAt(0),X="\t";if(null!=x)for(X="";0<x;)X+=" ",x--;x=document.createElement("span");x.style.whiteSpace="pre";x.appendChild(document.createTextNode(X));Q.insertNode(x);Q.setStartAfter(x);Q.setEndAfter(x);L.removeAllRanges();L.addRange(Q)};mxCellEditor.prototype.alignText=function(x,L){var Q=null!=L&&mxEvent.isShiftDown(L);if(Q||null!=window.getSelection&&null!=window.getSelection().containsNode){var X=
!0;this.graph.processElements(this.textarea,function(ea){Q||window.getSelection().containsNode(ea,!0)?(ea.removeAttribute("align"),ea.style.textAlign=null):X=!1});X&&this.graph.cellEditor.setAlign(x)}document.execCommand("justify"+x.toLowerCase(),!1,null)};mxCellEditor.prototype.saveSelection=function(){if(window.getSelection){var x=window.getSelection();if(x.getRangeAt&&x.rangeCount){for(var L=[],Q=0,X=x.rangeCount;Q<X;++Q)L.push(x.getRangeAt(Q));return L}}else if(document.selection&&document.selection.createRange)return document.selection.createRange();