fabpot/Twig-extensions — pull request #40 by vedranzgela (2011-12-12 10:41:36+00:00)
Title: Truncate to full sentences

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.