xpath - How do I exclude text within a node, when it's relative? -
i need exclude text after pipe written in node.
ex:
<meta property="og:xx" content=" text | text need exclude">
i'm not sure how exclude text after |
.
i know include text in div, no idea how include text preceding pipe, or exclude text after/including pipe.
//meta[@property='xx']//@content
Comments
Post a Comment