joomla/joomla-platform — pull request #1350 by elinw (2012-07-10 15:55:54+00:00)
Title: Add a more complex truncation method to JHtmlString (with tests)

This method allows you to truncate a string of html to a fixed number of characters of text not counting html tags. It builds on the existing string.truncate method.