Truncate to full sentences #40

Closed
wants to merge 2 commits into from

1 participant

@vdrnn

In order to be able to truncate a text to a certain amount of sentences, I added a new param called toTruncate. The function will truncate the text on the basis of the first length param. It will count the characters and set the sentence after the given amount of characters, depending on the length of the sentence of course. So if you want to truncate your text always to the first sentence, just set the length to 1.

@vdrnn vdrnn closed this Jan 29, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment