javascript - How to escape double quotes in Node.js -
i have tried / escape double quotes in string not able desired string.
the code snippets follows in node.js
var querystring = "select * courier couriername '%"+filtername+"%'"; console.log(querystring);
the output getting double quotes included on console:
select * courier couriername '%"a"%'
but want output this
select * courier couriername '%a%';
how .. have tried many things ...
seems me filtername equal "a" , not a
can log value ?
Comments
Post a Comment