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?).
Have you seen Floki?
Floki is a simple HTML parser that enables search for nodes using CSS selectors.
Its parsing capabilities seem decent but not sure about manipulation. It has a transform method but there are no usage examples.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With