php xpath dealing with apostrophe / single quote in searched text

前端 未结 3 1263
既然无缘
既然无缘 2020-12-07 05:53

In my PHP script, I\'m using XPATH to search nodes for text. Everything works swimmingly -except - when I search for a word with an apostrophe.

basically my code lo

3条回答
  •  孤街浪徒
    2020-12-07 06:17

    (which I'm forced to use since this is PHP)

    perhaps http://basex.org/api might be worth a look/try. It allows you to use XQuery/XPath and communicates either via REST or sockets. Apart from that I'd recommend salathes solutions.

提交回复
热议问题