. . Hong Kong Software Company
software house
Expert in web-based solutions
Software House in Hong Kong

Microsoft Certified Solution Developer

 

Chief Architect's Blog on software development

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


Member Log in
User ID:
Password:
 
 
Hong Kong Software House



 
March On to the Information Era. Realize your Vision via Customized Software.