久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      截字符串 去除HTML標記

      <%
      ‘**************************************************
      ‘函數(shù)名:gotTopic
      ‘作 用:截字符串,漢字一個算兩個字符,英文算一個字符
      ‘參 數(shù):str —-原字符串
      ‘ strlen —-截取長度
      ‘返回值:截取后的字符串
      ‘**************************************************
      function gotTopic(str,strlen)
      if str=”” then
      gotTopic=””
      exit function
      end if
      dim l,t,c, i
      str=replace(replace(replace(replace(str,” “,” “),”””,chr(34)),”>”,”>”),”<“,”<“)
      str=replace(str,”?”,””)
      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
      if t>=strlen then
      gotTopic=left(str,i) & “…”
      exit for
      else
      gotTopic=str
      end if
      next
      gotTopic=replace(replace(replace(replace(gotTopic,” “,” “),chr(34),”””),”>”,”>”),”<“,”<“)
      end function
      ‘=========================================================
      ‘函數(shù):RemoveHTML(strHTML)
      ‘功能:去除HTML標記
      ‘參數(shù):strHTML –要去除HTML標記的字符串
      ‘=========================================================
      Function RemoveHTML(strHTML)
      Dim objRegExp, Match, Matches
      Set objRegExp = New Regexp
      objRegExp.IgnoreCase = True
      objRegExp.Global = True
      ‘取閉合的<>
      objRegExp.Pattern = “<.+?>”
      ‘進行匹配
      Set Matches = objRegExp.Execute(strHTML)
      ‘ 遍歷匹配集合,并替換掉匹配的項目
      For Each Match in Matches
      strHtml=Replace(strHTML,Match.Value,””)
      Next
      RemoveHTML=strHTML
      Set objRegExp = Nothing
      set Matches=nothing
      End Function
      %>

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號