HttpUtility.HtmlEncode 方法
时间:2014-02-10 16:33:57
收藏:0
阅读:281
將字串轉換為 HTML 編碼的字串。
例如:
publicstringWelcome(string name,int numTimes =1){
returnHttpUtility.HtmlEncode("Hello "+ name +", NumTimes is: "+ numTimes);
}
原文:http://www.cnblogs.com/yechangzhong-826217795/p/3542453.html
评论(0)