The function below returns a string without HTML tags. This is the code:
Function strRemoveHTMLTag(strHTMLString)
Dim rexExpression, strOutput
'cretion of Regular Expression object
Set rexExpression = New Regexp
rexExpression.IgnoreCase = True
rexExpression.Global = True
rexExpression.Pattern = "<(.)+?>"
'string manipulation
strOutput = rexExpression.Replace(strHTMLString, "")
strOutput = Replace(strOutput, "<", "")
strOutput = Replace(strOutput, ">", "")
strOutput = Replace(strOutput, """, """")
'returns of the result to the function
strRemoveHTMLTag = "'" & strOutput
'destruction of RegExp object
Set rexExpression = Nothing
End Function
________________________________________________________________________
Questo sito è stato realizzato con Jimdo! Registra il tuo sito gratis su https://it.jimdo.com