diff --git a/editor/js/ui/view.js b/editor/js/ui/view.js index f94059d71..346d53509 100644 --- a/editor/js/ui/view.js +++ b/editor/js/ui/view.js @@ -1297,7 +1297,7 @@ RED.view = (function() { sp.className = className; sp.style.position = "absolute"; sp.style.top = "-1000px"; - sp.innerHTML = (str||"").replace(/&/g,"&").replace(//g,">"); + sp.textContent = (str||""); document.body.appendChild(sp); var w = sp.offsetWidth; document.body.removeChild(sp);