85605/how-to-remove-all-line-breaks-from-a-string
Hello @kartik,
Windows would be \r\n, but Linux just uses \n and Apple uses \r.
someText = someText.replace(/(\r\n|\n|\r)/gm, "");
That should remove all kinds of line breaks.
Hope it helps!!
Thank you!!
You can remove text from a <div> ...READ MORE
Hello Kartik, Use the JSON function JSON.parse(theString) ...READ MORE
Hello, You can produce the javascript file via ...READ MORE