????3???????????????????????
???????????????????XSS??????????????????????????????????????????????????????????????????????????????Щ??????????棬????????????<script>alert('?????????浯??????');</script>?????????????????Щ?????????????????????????????????????治?????????????????????????????????????????????????????????????????????????????????????????????????????????????Σ??????????????????????????Щ????????????

????XSS??????????????????????????? Cookie???????????????o???????????????????????????????????????????????[??????]?????????????????? JavaScript ??????????????????????????
????[1] <>?????????
????[2] "???????
????[3] '?????????
????[4] %??????????
????[5] ;??????
????[6] ()???????
????[7] &??& ?????
????[8] +??????
????????????????XSS?????????????????????HttpUitility??HtmlEncode????????????????AntiXSSLibrary???д??????????????
????????????????AntiXSSLibrary????????????????????????????????????????Web????ò???XSS??????


        protected void Page_Load(object sender?? EventArgs e)
        {
            this.lblName.Text = Encoder.HtmlEncode("<script>alert('OK');</SCRIPT>");
        }

??????????????????????????Lable?????????????????????

????????????????????????????????壬??????????????????????????????AntiXSSLibrary?????HtmlSanitizationLibrary???Sanitizer.GetSafeHtmlFragment???ɡ?
        protected void btnPost_Click(object sender?? EventArgs e)
        {
            this.lblName.Text = Sanitizer.GetSafeHtmlFragment(txtName.Text);
        }
???????????????????????????????????????????????????????????????????