diff options
author | David Mehren | 2020-12-27 19:49:57 +0100 |
---|---|---|
committer | GitHub | 2020-12-27 19:49:57 +0100 |
commit | 58276ebbf4504a682454a3686dcaff88bc1069d4 (patch) | |
tree | e43be02cf72f462a1fcc05470d4a2b7272cdbcda | |
parent | b23035c9a864eaa5efaa0423f1bab323ee0f8022 (diff) | |
parent | c32b1cf42b8ec96571815efc4a22a2207519807d (diff) |
Merge pull request from GHSA-g6w6-7xf9-m95p
Don't store mermaid diagrams in innerHTML
Diffstat (limited to '')
-rw-r--r-- | public/js/extra.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/extra.js b/public/js/extra.js index 49dd23ce..44db742a 100644 --- a/public/js/extra.js +++ b/public/js/extra.js @@ -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 |