Created
September 4, 2014 15:07
-
-
Save laurentperroteau/8f03b52fdb80345e4e8a to your computer and use it in GitHub Desktop.
Cut string after x characters and add "..."
This file contains 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
newString = oldString.substr(0,35) + ' [...] '; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment