I need a library to parse HTML, change some attributes of some elements, then write back result into HTML.
Is there a library for it?
In other languages (like PHP), there are DOM parsers. I found libraries for parsing HTML, but none of them allowed manipulation and generation (or I did not see it?).