" Live as if you were to die tomorrow. Learn as if you were to live forever.. "
- Mahatma Gandhi
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 :-
Function StripTags(ByVal html As String) As String
'Remove HTML tags.
Return Regex.Replace(html, "<.*?>", "")
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.
Mail (will not be published) (required)
Enter Captcha Code *
+ 8 = seventeen
Burn Ignorance is a knowledge initiative by Mindfire Solutions
Subscribe to our mailing list to get the updates to your email inbox...