How to truncate a string in javascript [duplicate]
This question already has an answer here:
Truncate a string straight javascript 3 answers
Basically. I'm building a Tumblr theme with flipping panels based on a
site I made for a hackathon. Tumblr will only give me the contents of a
text post as a massive string. But I want it truncated to like 200
characters so the contents will all fit on one "panel".
(The URL for the theme at the moment is http://jackwantshugs.tumblr.com/
and the text post is the one on the top left.)
No comments:
Post a Comment