• Twitter
  • Facebook
  • Google+
  • Instagram
  • Youtube

Tuesday, April 22, 2008

Remove HTML string - tag from specified string.

Remove HTML string - tag from specified string.
========================================


using System.Text.RegularExpressions;

public static string RemoveHtml(string strSource)
{

string pattern = @"<(.|\n)*?>";

strSource = Regex.Replace(strSource, pattern, string.Empty);


return strSource;
}

That's It !!
Hope you will like it.

0 comments:

Contact

Get in touch with me


Adress/Street

12 Street West Victoria 1234 Australia

Phone number

+(12) 3456 789

Website

www.johnsmith.com