Escape doesn't escape anything at all when using double quotes
Opened this issue · 1 comments
kornelski commented
Line 682 in 05762f3
return str.replace(/"/g, '"');
The replacement string was probably meant to be '\\"'
.
The code should be
return str.replace(/\\/g, '\\\\').replace(/"/g, '\\"');
Want to back this issue? Post a bounty on it! We accept bounties via Bountysource.