I’m new to n8n (self-hosted on a server via Coolify) and making an effort to move away from make.com :-). However, I have an issue: I am scraping a website with ninja scraper and getting three variables as a result. One of which, I took care to clean up, so I can pass it on to OpenAI in a JSON:
This variable contains quotation marks at the start and end of the text. That is a problem, because the JSON itself already contains quotation marks. And I can’t escape the quotation marks in the variable. Well, with two backslashes before {{ $(‘Scrape Site’).item.json.extractor.result.richTextClean }} I can escape the first one, but not the last. Does anyone have any ideas?