將字串轉換成Html編碼 /解碼 字串

摘要:將字串轉換成Html編碼 /解碼 字串

System.Web.HttpUtility.HtmlEncode(txtBox.Text);
System.Web.HttpUtility.HtmlDecode(txtBox.Text);