C# function for removing attributes in HTML
I have some html content who have some classes and inline stylesheet. i want a c# function who return the content by removing all attributes from them like
<div class="blah blah1 blah2" id="info" style="">it is content</div>
return
<div>it is content</div>
I want to do this in c# u开发者_如何学Csing regex.
how i can do this in c#
This sounds like a job for the HTML Agility Pack
精彩评论