Function FilterHTML(str)
              Dim re,cutStr
              Set re=new RegExp
              re.IgnoreCase =True
              re.Global=True
              re.Pattern="<(.[^>]*)>"
              str=re.Replace(str,"")   
              set re=Nothing

              str=Replace(str,"&nbsp","")
              str=Replace(str,chr(10),"")
              str=Replace(str,chr(13),"")
              str=Replace(str," ","")
              str=Replace(str," ","")

              Dim l,t,c,i
              l=Len(str)
              t=0
              For i=1 to l
                  c=Abs(Asc(Mid(str,i,1)))
                  If c>255 Then
                      t=t+2
                  Else
                      t=t+1
                  End If
                  cutStr=str
              Next
             
              FilterHTML= cutStr
          End Function
          posted on 2010-07-26 23:35 sanmao 閱讀(106) 評論(0)  編輯  收藏

          只有注冊用戶登錄后才能發表評論。


          網站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 武邑县| 页游| 成武县| 苏尼特左旗| 荥阳市| 池州市| 洱源县| 广水市| 达拉特旗| 乌海市| 正安县| 望都县| 临颍县| 南平市| 绥江县| 印江| 铜鼓县| 什邡市| 醴陵市| 沧源| 新乡市| 平南县| 宁明县| 晴隆县| 恩平市| 六枝特区| 北海市| 南丹县| 昭苏县| 清镇市| 淮阳县| 连云港市| 黄浦区| 阳江市| 民和| 香格里拉县| 丰城市| 陆良县| 焉耆| 汪清县| 吴川市|