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:
!1,!0)}finally{I.model.endUpdate()}}}catch(U){if(p)throw U;this.handleError(U)}return C};EditorUi.prototype.updatePageLinks=function(c,e){for(var k=0;k<e.length;k++)this.updatePageLinksForCell(c,e[k].root),null!=e[k].viewState&&this.updateBackgroundPageLink(c,e[k].viewState.backgroundImage)};EditorUi.prototype.updateBackgroundPageLink=function(c,e){try{if(null!=e&&Graph.isPageLink(e.originalSrc)){var k=c[e.originalSrc.substring(e.originalSrc.indexOf(",")+1)];null!=k&&(e.originalSrc="data:page/id,"+
k)}}catch(q){}};EditorUi.prototype.updatePageLinksForCell=function(c,e){var k=document.createElement("div"),q=this.editor.graph,p=q.getLinkForCell(e);null!=p&&q.setLinkForCell(e,this.updatePageLink(c,p));if(q.isHtmlLabel(e)){k.innerHTML=Graph.sanitizeHtml(q.getLabel(e));for(var t=k.getElementsByTagName("a"),x=!1,C=0;C<t.length;C++)p=t[C].getAttribute("href"),null!=p&&(t[C].setAttribute("href",this.updatePageLink(c,p)),x=!0);x&&q.labelChanged(e,k.innerHTML)}for(C=0;C<q.model.getChildCount(e);C++)this.updatePageLinksForCell(c,