#region 将Html特殊字符转义处理
        /// <summary>
        /// 将Html特殊字符转义处理
        /// </summary>
        /// <param name="strHC">需要专业的内容</param>
        /// <returns></returns>
        public static string HtmlCode(string strHC)
        {
            string strR = string.Empty;
            if (string.IsNullOrEmpty(strHC))
                return "";
            strR = strHC.Replace("&", "&amp;");
            strR = strR.Replace(">", "&gt;");
            strR = strR.Replace("<", "&lt;");
            strR = strR.Replace(" ", "&nbsp;");
            strR = strR.Replace("\n", "<br/>");
            strR = strR.Replace("\r", "<br/>");
            strR = strR.Replace("\r\n", "<br/>");
            strR = strR.Replace("'", "''");
            strR = strR.Replace("\"", "&quot;");
            strR = strR.Replace("#", "");
            strR = strR.Replace("%", "");

return strR;
        }
        #endregion

05-10 22:29