Hi,
I'm sending a POST with HTTP. before sending the POST I generated a Compose to add some New Lines. The odd thing here is that if I add the text directly in the Body of the POST it works but in the result of the compose it doesn't. Not sure why. Let me show you:
- In this screen shot you can see the body has two \n \n in the text. This works perfect when it is written directly in the body. It creates 2 next lines (carriage returns) in the comment. In this case for ASANA we are integrating.
- The second Compose Output has the following text once executed: This is a Test of HTML test \n This is the next line. \n<b>This is bold</b> \n
- When I check the body of the POST (executed, runtime) the \n that were in the output have changed to \\n.
{
"data": {
"html_text": "<body> This Comment was generated in DevOps by: <b> John Doe </b> \n \n This is a Test of HTML test \\n This is the next line. \\n <b>This is bold</b> \\n </body>"
}
}
- The result in the comment is this in ASANA
- You can see that the \n that were added directly in the body of HTTP POST generated the 2 lines but the ones that were "injected" by the compose output were past a plain text as for some reason another "\" was added.
I have spend a few days on this and tried many options without success.
Help is appreciated.