Skip to content

Commit

Permalink
Use innerText in example plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
guerler committed Sep 4, 2024
1 parent 5441399 commit 3365ead
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/plugins/visualizations/example/static/script.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
var element = document.getElementById("app");
var div = document.createElement('div');
div.innerHTML = JSON.stringify(JSON.parse(element.getAttribute("data-incoming")));
div.innerText = JSON.stringify(JSON.parse(element.getAttribute("data-incoming")));
document.body.appendChild(div);

0 comments on commit 3365ead

Please sign in to comment.