-3

I have a string template that includes the following:

    "echo": "echo \"$PWD\""

When I save the template to the file system, node strips out the escape characters ( \ ), so that in the above case the output would be:

    "echo": "echo "$PWD""

How do we keep node from stripping the escape characters?

Ole
  • 41,793
  • 59
  • 191
  • 359

1 Answers1

-1

This ended up doing the trick (Escape the escape character)! Thanks Andy!!

"echo": "echo \\"$PWD\\""
Ole
  • 41,793
  • 59
  • 191
  • 359