How to remove the New line / Line break Character

Looking for a solution to remove the line break or new line character from the text formatted line item editable by end users.

reading the text from the user editable line item to another line item, in the process want to replace new line character if any from the text. Because of New Line character the data while being exported and loaded into the target system resulting into loss of data.

Answers