Hi i have a method that removes all html tags which works.. i would like to ignore any <br /> or <br> tags how would i create a ignore list?
protected string RemoveHtmlCode(string strHTML)
{
Regex objRegExp = new Regex("<(.|\\n)+?>");
//Replace all HTML tag matches with the empty string
string strOutput = objRegExp.Replace(strHTML, "");
return strOutput;
}
...
Go to the complete details ...