Hi I'm not a programmer so bear with me, i found a script online that can send information to a webhook for another automation.
i have defined the following fields in the input.config( ) panel
numbers (works)
message (this is a block of text with line breaks)
Script:
let url = "webhook url"; // Replace the [ZapWebhook] with the webhook provided from the Zap Trigger step.
let config = input.config(); // This allows the Input Variables to be used in the code.
await fetch(url + "?number=+" + config.numbers + "&text=" + config.message);
this all works but my question is in my config.message - how can i send it with the formatting and line breaks? right now its a big block of text without line breaks when its sent to the webhook