當前位置:首頁 > 建站常識 > 列表

ASP如何過濾html中的(de)回車空格

點擊:時(shí)間:2017/6/17關鍵詞:上海網站開發 上海網頁設計 網頁設計公司
Function FormatStr(str)Dim s1,s2If str<>"" thenstr=replace(replace(Trim(str),chr(32)&chr(32),""),chr(9),"")DO While (ins
ASP獲取數據庫表名、庫名、字段名的(de)方法

Function FormatStr(str)

Dim s1,s2

If str<>"" then

str=replace(replace(Trim(str),chr(32)&chr(32),""),chr(9),"")

DO While (instr(str,">")>0 and instr(str,"<")>0)

s1=InStr(str,"<")

s2=Instr(s1,str,">")

If s1>0 and s2>0 then

str=replace(str,mid(str,s1,s2-s1+1),"")

End if

Loop

str=replace(replace(str,"<","<"),">",">")

str=Replace(Replace(Replace(replace(replace(str,chr(13),""),chr(10),""),"""","”"),"'","’")," ","")

FormatStr=str

Else

FormatStr=""

End if

End Function

預約建站
免費提供網站優化(huà)
領取關鍵詞