Convert any text to one line and keep line breaks as '\n' (by default).
Convert one line text with line breaks to multi-lines.