Skip to content

Commit

Permalink
chore: Change innerHTML to textContent
Browse files Browse the repository at this point in the history
No security issue.
  • Loading branch information
Shivam7-1 authored Apr 20, 2024
1 parent 5665493 commit 253454d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/custom-renderer-codelab/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ const runCode = () => {
const code = javascriptGenerator.workspaceToCode(ws);
codeDiv.innerText = code;

outputDiv.innerHTML = '';
outputDiv.textContent = '';

eval(code);
};
Expand Down

0 comments on commit 253454d

Please sign in to comment.