I will be specific:
How do I replace
<style type="text/css">
.class1 {font-weight:bold; font-size:10pt;}
.class2 {font-weight:bold; font-size:12pt;}
...
.classN {font-weight:bold; font-size:8pt; vertical-align:sub;}
</style>
<div class="class2" style="color:blue;">
Bold Text
</div>
With this:
<div style="color:blue; font-weight:bold; font-size:12pt;">
Bold Text
</div>
**Note that - node could be any node - attributes order doesn't care. - class attribute don't need to be stripped
There is any HTML method (C#) to do that? Regex? Any ideas?
Thanks in advance!