I have a string similar to this:
Lorem ipsum '\n' ipsum lorem
And this is new paragraph.
I want to remove the EOL chars and these 2 paragraphs to become one line. BUT I dont want to affect the '\n' - which in this case is literally used (not as new line indicator).
If I just make:
var.replace('\n', '')
This will affect it as:
"Lorem ipsum '' ipsum loremAnd this is new paragraph."
And I want it to be:
"Lorem ipsum '\n' ipsum loremAnd this is new paragraph."