philmasterplus
Active member
I tried to do something like this:
But this yields an error message: invalid xpath expression (test.ash, line 34)
Possibly related: I noticed a discussion about implementing a proper XPath support. Has this been actually implemented?
Code:
string page = '<p>foo bar</p>';
for _, node in xpath(string, '//p[contains(text(),"foo")]') {
print(node);
}
But this yields an error message: invalid xpath expression (test.ash, line 34)
Possibly related: I noticed a discussion about implementing a proper XPath support. Has this been actually implemented?