摘要:
//HTML转义function HTMLEncode(html) { var temp = document.createElement ("div"); (temp.textContent != null) ? (temp.textContent = html) : (temp.innerText = html); var output = temp.innerHTML; temp = null; return output; } //HTML反转义function HTMLDecode(text) { var temp = document... 阅读全文