Skip to content
Permalink
Browse files Browse the repository at this point in the history
Merge pull request from GHSA-g6w6-7xf9-m95p
Don't store mermaid diagrams in innerHTML
  • Loading branch information
davidmehren committed Dec 27, 2020
2 parents b23035c + c32b1cf commit 58276eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/extra.js
Expand Up @@ -386,7 +386,7 @@ export function finishView (view) {

window.mermaid.mermaidAPI.parse($value.text())
$ele.addClass('mermaid')
$ele.html($value.text())
$ele.text($value.text())
window.mermaid.init(undefined, $ele)
} catch (err) {
var errormessage = err
Expand Down

0 comments on commit 58276eb

Please sign in to comment.