/** * Returns an excerpt of the content. * * If the {@link $excerpt} property is not empty the excerpt is created from it, otherwise it * is created from the {@link $body}. * * @param number $limit The number of words desired. * * @return string */ public function excerpt($limit = 55) { return isset($this->excerpt) ? \ICanBoogie\excerpt($this->excerpt, $limit) : \ICanBoogie\excerpt((string) $this, $limit); }
/** * Returns an HTML excerpt of the comment. * * @param int $limit The maximum number of words to use to create the excerpt. Defaults to 55. * * @return string */ public function excerpt($limit = 55) { return \ICanBoogie\excerpt((string) $this, $limit); }