How to remove the html tags from the string.
Code-Behind :
public static string RemoveHTMLRegex(string strHTML)
{
string tmpHTML = Regex.Replace(strHTML, “<br />”, ” <br />”);
return Regex.Replace(strHTML, “<.*?>”, string.Empty);
}
namespace :
using System.Text.RegularExpressions;
Leave A Comment