To start page

Remove html tags from input

This is a handy little method that helps you keep your input free from html code.
private string StripAnyTags(string s)
{
    if (s != null)
    {
        return Regex.Replace(s, @"(<[a-z]+[^>]*>)|(</[a-z\d]+>)", "", 
RegexOptions.IgnoreCase | RegexOptions.ExplicitCapture); } return string.Empty; }
Comment this page
(No of comments: 0)

All rights reserved © 2007 epiforum.net | All trademarks and registered trademarks appearing on epiforum.net are the property of their respective owners. Every effort is made to provide accurate & complete information. However we cannot guarantee that there will be no errors and we do not make any warranty, expressed or implied, including the warranties of merchantability and fitness for a particular purpose with respect to documents available from epiforum.net. Additionally, epiforum.net assume no legal liability for the accuracy, completeness, or usefulness of any information, product, or process disclosed herein and do not represent that use of such information, product, or process would not infringe on privately owned rights. epiforum.net a brainchild of INEXOR AB.