it should be sufficient to do just:

```js
' pw("' + fullExp.replace(/(["\r\n])/g, '\\$1') + '");\n' +
```