In PHP-Xpath i get text between <br />
tags like:
//*/br/following-sibling::text()
How can i get this text only if contains 'needle'?
Something like br[contains(.,'needle')]
- or - following-sibling::*contains(.,'needle')/text()
Appreciate any help
Use:
following-sibling::text()[contains(., 'needle')]
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