kuchiki-rs / kuchiki

(朽木) HTML/XML tree manipulation library for Rust
MIT License
470 stars 54 forks source link

Add a very simple example #10

Closed ucarion closed 9 years ago

ucarion commented 9 years ago

I tried to cover the things I thought were useful for someone starting from zero, even if they weren't entirely related to kuchiki per se; for instance, I had no idea that text nodes existed until now, and I think getting text out of HTML is probably the most common use-case for casual users.

Thanks for making kuchiki! :heart:

SimonSapin commented 9 years ago

Looks good, thanks!

By the way I added a text_contents method that can be useful in this kind of situation: https://github.com/SimonSapin/kuchiki/commit/765dac5855595ee7b26d80a7617ef37a2676116b