
|
|
|
8 Jan 2008
|
Strip off Html Tag
HTML can help make your presentation look attractive. However, we
sometimes need a text-only version. Here is a function to strip off html tag of a rich text string:
Public Function StripHtml(ByVal str As String) As String Dim str1 As String str1 = System.Text.RegularExpressions.Regex.Replace(str, "<(.|\n)*?>", String.Empty) Return str1 End Function
|
|

|