摘要: //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... 阅读全文
posted @ 2014-04-10 17:26 朝野布告 阅读(4836) 评论(0) 推荐(0) 编辑