public function getSummary() { $summary = Article::dehtmlize($this->text); return mb_substr($summary, 0, 512, 'UTF-8'); }