/** * Return * * @return string */ public function getExcerpt() { $the_excerpt = strip_tags(strip_shortcodes($this->post_content)); $the_excerpt = trim(preg_replace('/\\s\\s+/', ' ', $the_excerpt)); $the_excerpt = preg_replace("/[Â| ]/", ' ', $the_excerpt); $the_excerpt = Utils::getWordsByStr($the_excerpt, self::COUNT_EXCERPT); return $the_excerpt; }