I am looking for a crate that allows me to create HTML elements from scratch, parse HTML strings and also has a DOM representation which I can modify (e.g. search, insert, remove, update elements etc).
There are a couple of crates that do either one or the other, but none of them do all of the above.
The crates I looked into are:
Thanks for the reply. It seems to be good for parsing and DOM modifications, but what about constructing html fragments? (Other than parsing a string)?
Is there a way to construct elements nicely, similar to how the build_html crate does it?
Unfortunately the docs of the crate you mentioned aren't that good, not many examples etc..
I looked a bit into this one, but I don't think creating fragments is very intuitive. At least from a first glance. Also, there aren't really many examples, only found one unit test, that doesn't really show much.
Unfortunately, DOM modification is somewhat limited, - for example removing or updating individual segments of the DOM isn't really possible. Otherwise, that crate would be perfect.
Couldn't find anything similar to this, either.