Skip to content

Instantly share code, notes, and snippets.

@bendavis78
Last active February 6, 2016 15:38
Show Gist options
  • Save bendavis78/87692a65b18d3f3e9e13 to your computer and use it in GitHub Desktop.
Save bendavis78/87692a65b18d3f3e9e13 to your computer and use it in GitHub Desktop.
> JSON.stringify('"hello \n world"\n this & that \r\n')
'"\\"hello \\n world\\"\\n this & that \\r\\n"'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment