asp.net(c#) ubb处理类
实现代码如下:using System; using System.Web; using System.Web.UI; using System.Text.RegularExpressions; namespace STH.function { /// /// UbbCode 的摘要说明。 ///
实现代码如下:using System; using System.Web; using System.Web.UI; using System.Text.RegularExpressions; namespace STH.function { /// /// UbbCode 的摘要说明。 ///
LBS^2 [2.0.304]下实现图片自动缩放 在class目录下ubbcode.asp第132行把 改为500)this.width=500;" alt="如果图片缩小请点击放大" /> 其中if(this.width>500)this.width=500 如果图片
strIcons = "1"//允许笑脸转换strSmile="1"//同上ImgName="em"picurl="/images/emot/"function UBBCode(content,html){content=content.replace("\\r","");content=conte
实现代码如下:"&tmpStr2&"://"&tmpStr3&"",1,-1,0)Next're.Pattern="(^|\s)(www\.\S+)"'strContent=re.Replace(strContent,"$1$2")End IFIF Not DisUB
", ">")'fString = replace(fString, "")HTMLEncode = fStringend ifend functionfunction HTMLcode(fString)if not isnull(fString) thenfString = Replace(