src/index.js
function escape (script) {
  return script.replace(/\\/g, '\\\\').replace(/\n/g, '\\n')
    .replace(/\r/g, '\\r').replace(/\t/g, '\\t').replace(/"/g, '\\"')
}
function escape (script) {
  return script.replace(/\\/g, '\\\\').replace(/\n/g, '\\n')
    .replace(/\r/g, '\\r').replace(/\t/g, '\\t').replace(/"/g, '\\"')
}
function escape ( script ) { return script . replace ( / \\ / g , '\\\\' ) . replace ( / \n / g , '\\n' ) . replace ( / \r / g , '\\r' ) . replace ( / \t / g , '\\t' ) . replace ( / " / g , '\\"' ) }
Escapes symbols in python code so that we can send it using inline mode.

@param {string} script The Python script.
@returns {string} The escaped python script.

@ignore
Escapes symbols in python code so that we can send it using inline mode .