mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-09 02:27:05 +02:00
fix xss test
This commit is contained in:
@@ -119,7 +119,7 @@ const contentLoadedApi = async function () {
|
||||
mermaid2.initialize(graphObj.mermaid);
|
||||
const { svg, bindFunctions } = await mermaid2.render('newid', graphObj.code, div);
|
||||
div.innerHTML = svg;
|
||||
console.log(svg);
|
||||
console.log(div.innerHTML);
|
||||
bindFunctions(div);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user