Skip to content

Instantly share code, notes, and snippets.

@DanyelMorales
Created December 12, 2018 15:35
Show Gist options
  • Save DanyelMorales/b71049ec5ae7b9988397190e0afb72b4 to your computer and use it in GitHub Desktop.
Save DanyelMorales/b71049ec5ae7b9988397190e0afb72b4 to your computer and use it in GitHub Desktop.
Replace Linebreak with Unicode
// Replace Linebreak with Unicode
block = block.replace(/\n/g, '\uffff');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment