How I Can scape break lines

Hi

I need to extract the information from an email and then send it to my system.

I used IMAP, and everything has been successful. however, IMAP responds to me with a text that has spaces (That’s exactly how the mail is written). and apparently when I want to make the HTTP Request it gives me an error.

I have the theory that what gives error are the line breaks, and I would like to delete them, however the .replace(“\n”,“”) does not take effect.

Does anyone know how to make it work.??

Thanks

Try wrapping the value in your expression in a JSON.stringify()

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.