diff --git a/src/puter-js/src/index.js b/src/puter-js/src/index.js index 5e77f0749..86f52dc29 100644 --- a/src/puter-js/src/index.js +++ b/src/puter-js/src/index.js @@ -524,7 +524,8 @@ export default window.puter = (function() { print = function(...args){ for(let arg of args){ - document.body.innerHTML += arg; + const textNode = document.createTextNode(arg); + document.body.appendChild(textNode); } } }