mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-17 10:02:05 +00:00
feat(Twilio Node): Add ability to make a voice call using TTS (#3467)
* Add ability to make a voice call on Twilio using TTS * ⚡ Small improvement Co-authored-by: ricardo <ricardoespinoza105@gmail.com>
This commit is contained in:
@@ -59,3 +59,17 @@ export async function twilioApiRequest(this: IHookFunctions | IExecuteFunctions,
|
||||
throw new NodeApiError(this.getNode(), error);
|
||||
}
|
||||
}
|
||||
|
||||
const XML_CHAR_MAP: { [key: string]: string } = {
|
||||
'<': '<',
|
||||
'>': '>',
|
||||
'&': '&',
|
||||
'"': '"',
|
||||
"'": '''
|
||||
};
|
||||
|
||||
export function escapeXml(str: string) {
|
||||
return str.replace(/[<>&"']/g, function (ch: string) {
|
||||
return XML_CHAR_MAP[ch];
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user