Created
June 2, 2014 16:32
-
-
Save dannko/3c60f63aec419244a5d6 to your computer and use it in GitHub Desktop.
Обрезать текст до 2к символов на .js
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
var str = "{-Variable.article_for_js-}"; | |
str = str.substr(0, 2000); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment