Add new feature to functionTruncate.
Now this function don't cut the HTML elements.
Thanks Alan Whipple for this function: http://alanwhipple.com/2011/05/25/php-truncate-string-preserving-html-tags-words/