Language: JavaScript
Label: safe
CWE: CWE-78 \u2014 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
The product constructs all or part of an OS command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended OS command when it is sent to a downstream component.

Code:
n,"\nvalue:",c,"\ntext:",e);return e};EditorUi.prototype.removeMermaidComments=function(c){c=c.split("\n");for(var e=[],k=0;k<c.length;k++)"%%"!=c[k].substring(0,2)&&e.push(c[k]);return e.join("\n")};EditorUi.prototype.generateMermaidImage=function(c,e,k,n,p){c=this.removeMermaidComments(c);var t=mxUtils.bind(this,function(C){this.loadingMermaid=!1;null!=n?n(C):this.handleError(C)}),y=mxUtils.bind(this,function(){try{this.loadingMermaid=!1;e=null!=e?e:mxUtils.clone(EditorUi.defaultMermaidConfig);