'****DO NOT REMOVE THESE LINES*****
'Eliminate some HTML tags Function...
'Written by Kaan DOGAN aka Superlative
'*******************************
'Text is your html source value
Text = Trim(Mid(Text,1,500))
'You can add some html tags to bellow array for exclude some tags
TermX = Array("<img","<a href","<b","</a","</b","</p","<p")
pos1=1
skipchar=0
Do
pos1 = InStr(pos1, Text, "<")
If pos1<>0 then
pos2 = InStr(pos1, Text, ">")+1
If pos2=1 then pos2 = Len(Text)+1
temp_term=Mid(Text,pos1,pos2-pos1)
skipchar = 0
For i=0 to ubound(TermX)
If Trim(Mid(temp_term,1,len(TermX(i)))) = TermX(i) then skipchar=1
Next
If skipchar=0 then
Text = Replace(Text,Temp_Term,"")
Else
pos1=pos1+1
End if
End if
Loop Until pos1=0