Multiline ↔ Single-line

Convert multiline text to single-line escaped string and back.