Commit 89de54ad authored by Tobias Steiner's avatar Tobias Steiner
Browse files

Add an escaper for special character

parent 5617911a
import {v1 as neo4j} from 'neo4j-driver';
import * as jsesc from 'jsesc';
export class Linker {
private nconf;
private logger;
......@@ -59,6 +59,14 @@ export class Linker {
}, 1000);
});
});
}
/**
* There is no build in function to escape
* https://github.com/neo4j/neo4j-javascript-driver/issues/398
* @param string
*/
public escape(data: string) {
return jsesc(data);
}
}
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment