首页 > 其他 > 详细

防止 xxs

时间:2019-01-25 18:19:40      阅读:159      评论:0      收藏:0      [点我收藏+]
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;
}

  

防止 xxs

原文:https://www.cnblogs.com/nns4/p/10320886.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!