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

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -