function organizing_ht(){ var htmls = document.getElementById("htmls"); var div = document.createElement("div"); div.innerHTML=htmls.value; htmls.value=div.innerText;}
建议使用innertext()试一下