开发者问题收集
var str = '&lt;script&gt;alert(1)&lt;/script&gt;';var decoded = $("<div/>").html(str).text();//document.write(decoded); THIS WORKS, but I want to avoid using document.writevar para = document.createEl