I have a string that has HTML mark ups like below
results[1] = <div class="ExternalClassAE850B41EF"><p><span>G_Pck</span></p></div>
I want to extract the mark ups and just store G_Pc. I did use the Regex Function like below
string StTag = results[i].ToString();
var b = Regex.Match(StTag, "(?<=>)(.*)(?=<)");
But still I see the the span and p tags in the b
. How can I escape those tags too