Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
string(value: string): TwingCompiler {
if (!isNullOrUndefined(value)) {
if (typeof value === 'string') {
value = '`' + addcslashes(value, "\0\t\\`").replace(/\${/g, '\\${') + '`';
}
}
else {
value = '``';
}
this.source += value;
return this;
}