1

I have to make a simple change to a HTML-Element (add and remove some attributes). The problem is that I have to go through a lot of HTML-files to do that.

How could I automate that? Sure, there are libraries for parsing and modifying HTML, but after looking at a few of them I am getting the feeling that most don't support saving the changes to the HTML-files.

2
  • Which attributes are you planning on removing? I know my question is a bit irrelevant but... Commented Apr 13, 2011 at 13:13
  • Just removing a few obsolete CSS classes. Commented Apr 21, 2011 at 10:14

1 Answer 1

1

Check out Html Agility Pack. There are plenty of examples out there.

Sign up to request clarification or add additional context in comments.

1 Comment

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.