754 snippets from 1516 members, and growing!
|
login
|
join
about
bytebin
members
tags
snippets
join
Snippets
Submit a Snippet
Search Snippets
New Snippets
Top Snippets
Top Tags
PHP
(135)
JavaScript
(123)
Java
(65)
VBSCRIPT
(58)
String
(44)
CSS
(31)
CSharp
(28)
File
(28)
HTML
(27)
C
(24)
mysql
(24)
VB.NET
(24)
CPlusPlus
(23)
groovy
(23)
Random
(20)
New Snippets
Removing doubles ...
IE Explorer Proxy...
calculating md5 i...
tabless form usin...
find if array con...
Rapleaf Address B...
Javascript port o...
hash sha1
URL Regular Expre...
Email address val...
Venture Capital Jobs
New Members
Kelmi
ysg
dannymo2
chorny
wallie
Hackdemian
impomatic
cyberhitesh
omarabid
richard123
Top Members
dannyboy
sundaramkumar
mattrmiller
Pio
i_kenneth
ASmith
ctiggerf
bertheymans
SCoon
wiz1705
Home
/
Snippets
/
Strip HTML Tags From a String
/
Comments
Strip HTML Tags From a String
Snippet Menu
Revisions
Comments
Related Snippets
Add to Favorites
Email Snippet
Download Snippet
Print Snippet
Blog Snippet
snippet
|
revisions
|
comments
|
related
|
Add to Favorites
|
email
download
|
print
|
blog it
New Comment
Another way...
Mon. Feb. 5th, 2007 2:47 AM
Pio
I use this way for two reasons. #1 it's faster, #2 if there isn't a closed tag present then it will remove it anyways.
Allen / Pio
email: intolerance@gmail.com
Private Function RemoveHTML(ByVal str As String) As String Return Regex.Replace(str, "<(.*?)>", "") End Function
Reply
New Comment
Allen / Pio
email: intolerance@gmail.com