گروه فناوری پرند - Parand Tech Group

How to Strip HTML Tags

Julien Cheyssial is looking for a way to strip HTML tags, here is the function I use in Second News:

Public Shared Function Remover(ByVal strInput As String) As String
   Dim strOutput As String
   strOutput = Regex.Replace(strInput, "<[^>]*>", " ")
   Return strOutput
End Function

Usage: Remover(Your string) and it returns what you expected.

Print | posted on Saturday, December 20, 2003 3:48 PM

Comments on this post

No comments posted yet.

Your comment:

 (will show your gravatar)
 
Please add 1 and 5 and type the answer here: