HTML helper class for rendering manipulated strings.
Located in /libraries/cms/html/string.php (line 19)
Abridges text strings over the specified character limit. The behavior will insert an ellipsis into the text replacing a section of variable size to ensure the string does not exceed the defined maximum length. This method is UTF-8 safe.
For example, it transforms "Really long title" to "Really...title".
Note that this method does not scan for HTML tags so will potentially break them.
Truncates text blocks over the specified character limit and closes all open HTML tags. The method will optionally not truncate an individual word, it will find the first space that is within the limit and truncate at that point. This method is UTF-8 safe.
Method to extend the truncate method to more complex situations
The goal is to get the proper length plain text string with as much of the html intact as possible with all tags properly closed.
Documentation generated on Tue, 19 Nov 2013 15:14:32 +0100 by phpDocumentor 1.4.3