Remove all un-necessary HTML Tag
Hi All,
This Function will remove all un- necessary HTML Tag from the string which you will pass as a parameter to this function :
public static string removeAllHTMLTags(string text)
{
Regex m = new Regex(@"<(.|\\n)*?>", RegexOptions.IgnoreCase);
string newString = m.Replace(text, "");
return newString;
}
Comments
Post a Comment