At times we face situations in which we may have a big string containing the html tags in it and we need to remove the tags from the text to get the appropriate string as text.
We can do it very easily using regular expression comparision as mentioned in the below example :-
Example :-
Function StripTags(ByVal html As String) As String 'Remove HTML tags. Return Regex.Replace(html, "<.*?>", "") End Function
The above example is of a function which returns only the string part by removing the HTML tags from the big string supplied as parameter to the string.