\JHtmlString
HTML helper class for rendering manipulated strings.
Synopsis
class JHtmlString
{
- // methods
- public static string truncate()
- public static string truncateComplex()
- public static string abridge()
Tasks
Tasks
Line | Task |
---|---|
192 | $character doesn't seem to be used... |
Methods
public
- abridge() — 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.
- truncate() — 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.
- truncateComplex() — Method to extend the truncate method to more complex situations