NodePDF
NodePDF copied to clipboard
Possible fix for shell-quote problem
This PR tries to solve https://github.com/TJkrusinski/NodePDF/issues/33. By two regular expressions I try to get around the problem introduced by the behaviour of shell-quote for quote chars "
and exclamation marks !
.
There might be a better solution to this problem, but at least for my purposes this fix helps getting the job done. Both test cases work in this way.
I already tried that and it won't solve the problem in all cases. The best solution I came up so far is to write the whole JSON into a new file which will then be required. This also solves some HTML encoding problems. Only problem is that I have done this at an older version of this project and hadn't the time to port this over.