Example #1
0
 /**
  * Truncates text starting from the end.
  *
  * Cuts a string to the length of $length and replaces the first characters
  * with the ellipsis if the text is longer than length.
  *
  * ### Options:
  *
  * - `ellipsis` Will be used as Beginning and prepended to the trimmed string
  * - `exact` If false, $text will not be cut mid-word
  *
  * @param string $text String to truncate.
  * @param int $length Length of returned string, including ellipsis.
  * @param array $options An array of html attributes and options.
  * @return string Trimmed string.
  * @see String::tail()
  * @link http://book.cakephp.org/2.0/en/core-libraries/helpers/text.html#TextHelper::tail
  */
 public function tail($text, $length = 100, $options = array())
 {
     return $this->_engine->tail($text, $length, $options);
 }