开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜