📅  最后修改于: 2022-03-11 15:03:20.902000             🧑  作者: Mango
const decodeHTML = s => {
var str, temp= document.createElement('p');
temp.innerHTML= s;
str= temp.textContent || temp.innerText;
temp=null;
return str;
}
console.log(decodeHTML('<'));