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 閱讀(107) 評論(0)  編輯  收藏

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


          網站導航:
           

          常用鏈接

          留言簿(5)

          隨筆分類

          隨筆檔案

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 忻州市| 江阴市| 曲麻莱县| 侯马市| 松原市| 长宁区| 大关县| 江油市| 太仆寺旗| 沿河| 长汀县| 嵊泗县| 三门峡市| 岗巴县| 原平市| 报价| 凤城市| 万载县| 旅游| 治县。| 内乡县| 鲁山县| 七台河市| 长治县| 靖州| 广州市| 阿拉善右旗| 黄陵县| 衡阳县| 张北县| 铜陵市| 略阳县| 勃利县| 罗甸县| 交口县| 天长市| 闽清县| 桐庐县| 内黄县| 樟树市| 巴林左旗|