Created
June 1, 2014 10:34
-
-
Save 0x4a/430383222d0d6edbdb70 to your computer and use it in GitHub Desktop.
This javascript code removes all 3 types of line breaks - #js #string
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//http://www.textfixer.com/tutorials/javascript-line-breaks.php | |
someText = someText.replace(/(\r\n|\n|\r)/gm,""); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment