Tutorials
Resources
Forum
Communities
Interview
Jobs
Projects
Offshore Development
Silverlight Tutorials
|
Mentor
|
Code Converter
|
Articles
|
Code Factory
|
Computer Jokes
|
Members
|
Peer Appraisal
|
IT Companies
|
Bookmarks
|
Revenue Sharing
|
Prizes & Awards
My Profile
Sign In
Register
AdSense Revenue
Active Members
Today
Abraham Kuriak...
(101)
Deepika Harida...
(78)
shekhar
(71)
Last 7 Days
UmaShankar
(1211)
ANIL PANDEY
(659)
Deepika Harida...
(498)
more...
New Feature:
Community Sites
:
Create your own .NET community website and start earning from Google AdSense !
It's Free !
Strip HTML tags from string
Posted Date: 01 Mar 2007 Resource Type:
Code Snippets
Category:
Regular Expressions
Posted By:
Tony John
Member Level:
Gold
Rating:
Points
: 10
This code sample removes all the HTML tags (any text between < >) within the given text. YOu can use thsi function to stripp off all HTML tags from a web page and display as plain text. This sample code will replace only words enclosed within < >. If there is < or > with no text in between, they will not be removed.
Dim objRegExp as New RegEx("<(.|\n)+?>")
string plainText = objRegExp.Replace(htmlText, "")
Responses
No responses found. Be the first to respond and make money from
revenue sharing program
.
Feedbacks
Popular Tags
What are tags ?
Search Tags
Sign In
(No tags found.)
Post Feedback
This is a strictly moderated forum. Only approved messages will appear in the site. Please use 'Spell Check' in Google toolbar before you submit.
You must
Sign In
to post a response.
Next Resource:
Validating Postal Codes using Javascript
Previous Resource:
How to use the Regex.Split() to split strings in C# ?
Return to Discussion Resource Index
Post New Resource
Category:
Regular Expressions
Post resources and
earn money
!
Related Resources
Check if String is Integer Using Regular Expression
ValidateExpression for Day,Month and Year
To restrict date to mm/dd/yyyy format
Regular Expression for DD/MM/YYYY Format
Text validation for TextInput in Flex
dotNet Slackers
BizTalk Adaptors
Web Design
budget conference call
Contact Us
Privacy Policy
Terms Of Use