James-LG / Skyscraper

Rust library for scraping HTML using XPath expressions
MIT License
30 stars 3 forks source link

fix(xpath): Adjust text methods to match lxml #30

Closed James-LG closed 4 months ago

James-LG commented 4 months ago

Adds an itertext() method to XpathItemTreeNode that behaves like lxml's itertext method.

Also adjusted XpathItemTreeNode::text() method such that it matches the behaviour of lxml's text() method.

Other fixes:

Fixes #26