Strip HTML Tags From a String





-3
Date Submitted Wed. Oct. 12th, 2005 9:51 PM
Revision 1 of 1
Helper ses5909
Tags HTML | String | Strip | VB.NET
Comments 1 comments
Strip HTML Tags From a String
Dim strippedString As String = Regex.Replace(htmlString, "<(.|\n)*?>", string.Empty)

'this will strip anything found in HTML tags.
'
(.|\n) -- Finds any character including the new line character
' *?  -- 0 or more occurences and the match will stop at the first occuring ">" it sees

Sara Smith

www.ilovecode.com
Sara

ilovecode

Comments

Comments Another way...
Mon. Feb. 5th, 2007 2:47 AM    Scripter Pio

Voting