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

Popular posts from this blog

php - Calling a template part from a post -

Firefox SVG shape not printing when it has stroke -

How to mention the localhost in android -