html的标签怎么转换?
沧海小鱼 2007-06-09 01:50:48 '声明截取的格式,从Start开始截取,到Last为结束
Function GetKey(HTML,Start,Last)
filearray=split(HTML,Start)
If UBound(filearray)>0 Then
filearray2=split(filearray(1),Last)
If UBound(filearray2)>0 Then
GetKey=filearray2(0)
Else
GetKey=""
End IF
Else
GetKey=""
End IF
End Function
product_Name = GetKey(Html,product_Name_start,product_Name_end) '获取商品名称
一旦从数据库里取出<title>就获取不了,数据库里值为<title>文本类型
下面这个就可以,我该这么转换下呢?
product_Name = GetKey(Html,"<title>","</title>")