When a program wants a line break inside a string, it writes a backslash and an n. JSON does this. Many logs do this. Chat exports, CSV cells, error messages copied out of a browser, and code-generated prompts do this. What lands on your clipboard is four characters of meaning compressed into two glyphs: \n. If you paste that into a notes app, you get a single crushed paragraph with the symbols still visible. Nothing is “wrong” with the text. It is just still escaped.
The same thing happens with tabs (\t), Windows line endings (\r\n), and doubled backslashes from logs that escaped an already escaped string. A text replacer that can interpret those sequences is how you get a document back: real line breaks, real columns, a stack trace you can read. The reverse job exists too—turning a readable draft back into a JSON string—because the next system in the pipeline may only accept the escaped form.