Hi
So, I have Perplexity passing content which contains \n line breaks. The output of which I need to pass in a POST HTTP request and the \n is breaking the request. I have created a Text Parser module that replaces {{newline}} with urlencode(
) but the output still breaks. The
is replaced with %0A which is breaking the POST request.
What is the best way to get the content out of Perplexity and into the request?
[
{
“text”: “After conducting research on the internet, I found the following information about Steve Jenkin:\n\nSteve Jenkin has no recorded history of arrests or convictions. There are no sanctions imposed on him by any government or international organization. He is not listed as a Politically Exposed Person (PEP) by any reputable source.\n\nSources used for this research include:\n\n* Thomson Reuters World-Check\n* Dow Jones Risk & Compliance\n* LexisNexis Risk Solutions\n* Bloomberg Government\n* Financial Action Task Force (FATF) database\n* United Nations Al-Qaeda Sanctions List\n* European Union’s list of persons, groups and entities subject to EU financial sanctions\n\nPlease note that this research is based on publicly available information and may not be exhaustive or up-to-date. Additionally, the absence of any adverse media recorded against Steve Jenkin does not guarantee that he is not involved in any illegal or unethical activities.”,
“value”: “%0A”,
“global”: true,
“pattern”: “\n”,
“multiline”: true,
“sensitive”: false,
“singleline”: false
}
]
Output
[
{
“text”: “After conducting research on the internet, I found the following information about Steve Jenkin:%0A%0ASteve Jenkin has no recorded history of arrests or convictions. There are no sanctions imposed on him by any government or international organization. He is not listed as a Politically Exposed Person (PEP) by any reputable source.%0A%0ASources used for this research include:%0A%0A* Thomson Reuters World-Check%0A* Dow Jones Risk & Compliance%0A* LexisNexis Risk Solutions%0A* Bloomberg Government%0A* Financial Action Task Force (FATF) database%0A* United Nations Al-Qaeda Sanctions List%0A* European Union’s list of persons, groups and entities subject to EU financial sanctions%0A%0APlease note that this research is based on publicly available information and may not be exhaustive or up-to-date. Additionally, the absence of any adverse media recorded against Steve Jenkin does not guarantee that he is not involved in any illegal or unethical activities.”
}
]