Node escaping backslashes
Hi guys,
I have the pdf to text extraction node. Then I pass that text as a string to the next node (custom node) where I want to split the text using langchain js. The problem is; the method I want to use is split first on "\n\n", then on "\n", then on " ". The node does however seem to escape backslashes from the provided string.
Any solution to this?
I have the pdf to text extraction node. Then I pass that text as a string to the next node (custom node) where I want to split the text using langchain js. The problem is; the method I want to use is split first on "\n\n", then on "\n", then on " ". The node does however seem to escape backslashes from the provided string.
Any solution to this?
Solution
Hi @Sleetza, The html text input escapes new lines by default
you'll have to paste the text in the expanded text-area to preserve the new lines.
It is not directly possible to make
you'll have to paste the text in the expanded text-area to preserve the new lines.
It is not directly possible to make
<input type="text" /> to support new lines.