Author: craigmacca24 | Posted on: 10/6/2010 10:33:44 AM | Views : 401

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 ...