生成A锚点的HTML - FillHref

2017-01-25 17:36:30  访问(1532) 赞(0) 踩(0)


        /// <summary>
        /// 生成A锚点的HTML - FillHref
        /// </summary>
        /// <param name="strText"></param>
        /// <param name="strTitle"></param>
        /// <returns></returns>
        public string FillHref(string strUrl, string strText, string strTitle)
        {
            StringBuilder theResult = new StringBuilder();

            if (strTitle == null)
                strTitle = strText;

            theResult.Append("<a href=\"" + StringConvertQuot(strUrl) + "\" ");
            theResult.Append("title=\"" + StringConvertQuot(strTitle) + "\" ");
            theResult.Append(">");
            theResult.Append(strText);
            theResult.Append("</a>");

            return theResult.ToString();
        }


标签:生成A锚点的HTML - FillHref 

上一条:

下一条:


 

相关评论

评论加载中……
 

发表评论

类型:
内容:
  (Alt+Enter)