var test = document.getElementById("test"); $('#test').append("\u003cscript\u003ealert('okok');")
<div id="test"></div>