close
Server side

http://blog.kkbruce.net/2010/11/microsoft-antixss-library-31-upgrade-40.html#.VkmUF9IrKUl
using Microsoft.Security.Application;
string 新聞文章 = Sanitizer.GetSafeHtmlFragment(Server.HtmlEncode(commentBox.InnerText));


Client side

http://stackoverflow.com/questions/20855482/preventing-html-and-script-injections-in-javascript


html
= html.replace(/</g,"&lt;").replace(/>/g,"&gt;");
arrow
arrow
    全站熱搜
    創作者介紹
    創作者 amychang2014 的頭像
    amychang2014

    工作需要筆記

    amychang2014 發表在 痞客邦 留言(0) 人氣()