C# Tutorials and offshore development in India
    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



Active Members
TodayLast 7 Days 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  
(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



dotNet Slackers   BizTalk Adaptors    Web Design

budget conference call

Contact Us    Privacy Policy    Terms Of Use