How to use the parse function from xpath

Find comprehensive JavaScript xpath.parse code examples handpicked from public code repositorys.

1
2
3
4
5
6
7
8
9
10
11
const xpath = require('xpath');
const app = express();


app.get('/some/route', function(req, res) {
  let tainted = req.param("userName");
  xpath.parse(tainted); // NOT OK
  xpath.select(tainted); // NOT OK
  xpath.select1(tainted); // NOT OK
  let expr = xpath.useNamespaces(map);
  expr(tainted); // NOT OK
fork icon0
star icon2
watch icon0