Html.Span 获得span对应的HTML - HtmlSpanGet

2017-01-30 19:08:11  访问(1447) 赞(0) 踩(0)


        /// <summary>
        /// Html.Span 获得span对应的HTML - HtmlSpanGet
        /// </summary>
        /// <param name="strText"></param>
        /// <param name="strTitle"></param>
        /// <returns></returns>
        public string HtmlSpanGet(string strText, string strTitle)
        {
            StringBuilder theResult = new StringBuilder();

            theResult.Append("<span");

            if (strTitle != null && strTitle.Length > 0)
            {
                theResult.Append(" title=\"" + StringConvertQuot(strTitle) + "\"");
            }

            theResult.Append(">");

            if (strText != null)
            {
                theResult.Append(strText);
            }

            theResult.Append("</span>");

            return theResult.ToString();
        }
 


标签:Html.Span 获得span对应的HTML - HtmlSpanGet 

上一条:

下一条:


 

相关评论

评论加载中……
 

发表评论

类型:
内容:
  (Alt+Enter)
 
  ┈全部┈  
 
(显示默认分类)