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.extractGraphModelFromHtml=function(b){var e=null;try{var g=b.indexOf("&lt;mxGraphModel ");if(0<=g){var p=b.lastIndexOf("&lt;/mxGraphModel&gt;");p>g&&(e=b.substring(g,p+21).replace(/&gt;/g,">").replace(/&lt;/g,"<").replace(/\\&quot;/g,'"').replace(/\n/g,""))}}catch(y){}return e};