开发者

C# function for removing attributes in HTML

开发者 https://www.devze.com 2023-02-15 05:36 出处:网络
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

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

精彩评论

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