Skip to content

Commit

Permalink
fix: update screenshot.js DOM text reinterpreted as HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
Shivam7-1 authored Apr 18, 2024
1 parent 3985e4f commit 7a5dcea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/dev-tools/src/screenshot.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function workspaceToSvg_(workspace, callback, customCss) {
// Go through all text areas and set their value.
const textAreas = document.getElementsByTagName('textarea');
for (let i = 0; i < textAreas.length; i++) {
textAreas[i].innerHTML = textAreas[i].value;
textAreas[i].innerText = textAreas[i].value;
}

const bBox = workspace.getBlocksBoundingBox();
Expand Down

0 comments on commit 7a5dcea

Please sign in to comment.