joomla/joomla-platform — pull request #1413 by elinw (2012-07-26 00:19:10+00:00)
Title: Add a more complex truncate method

This method allows specification of a given length of plain text embedded in HTML of unlimited length when truncating. This offers a more complex option than the truncate method which allows specification of total length (number of character) of either plain text or html+plaintext.

It also corrects some minor problems in the string.truncate method.