Escape any text — even huge multi-line input — into a JSON or JS string literal, or parse one back to raw text.