I am trying to figure out how to remove a specific style value from nodes. I am using element.Attributes.Remove(element.Attributes["style"]); to remove all styles but I only want to remove styles that have a certain value. i.e.
Remove style from
<tr style='background-color:rgb(255, 255, 153);'> But not from
<tr style='background-color:rgb(0, 0, 255);'> I would also then like to add a class to the same node.