I have a piece of html code that I want to wipe out some style parts, I know I need to regex but I don't know how to generate the regex or even how to apply it in my c# code. Below is the sample of original string:
<p style="color: #000000; text-transform: none; letter-spacing: normal; font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; word-spacing: 0px; white-space: normal; font-size-adjust: none; font-stretch: normal; -webkit-text-stroke-width: 0px;">
And here is the output that I wish to get after a replace operation:
<p>
I want to get rid of the style attribute. And I need to do this for all occurances of <p ...>
There exist tons of examples about this kind of jobs, but I really got confused about this. So any clue on solution would be great. Thanks in advance.