|
|
I want to remove the html tags that are coming in a string. How can I do this by using HTML Agility Pack?
|
|
|
|
Hello coder,
If you are using C#, here is a simple REGEX function that will do the job for what you are asking.
private string StripTagsRegex(string source)
{
return Regex.Replace(source, "<.*?>", string.Empty);
}
Kind Regards.
|
|