將字串轉換為 HTML 編碼的字串。
例如:
publicstringWelcome(string name,int numTimes =1){ returnHttpUtility.HtmlEncode("Hello "+ name +", NumTimes is: "+ numTimes);}
HttpUtility.HtmlEncode 方法
原文:http://www.cnblogs.com/yechangzhong-826217795/p/3542453.html