I have this example html - string html="<span id="x" style="color:#000000;">aaaaa</span>"
I am trying this to get html without the style:
string clean = Regex.Replace(html, "style=\\?\"[^\"]*\\?\"", "");
the regex should also target <span id="x" style=\"color:#000000;\">aaaaa</span>
In this case the result inside clean
is the same as html
Any thought?