Header Ads

Remove Html tag from string

Remove Html tag from string
using System.Text.RegularExpressions;
const string HTML_PATTERN = "<.*?>";

static string StripHTML (string inputString)
{
return Regex.Replace
(inputString, HTML_PATTERN , " ");
}

No comments:


Powered by Blogger.