23: */
24: public function renderExcerpt(string $content): string {
25: $plainText = $this->renderPlainText($content);
26:
27: $excerpt = mb_ereg_replace("\n", ' ', $plainText);
28: $excerpt = mb_ereg_replace("\s{2,}", ' ', $excerpt);
29: if (mb_strlen($excerpt) > self::EXCERPT_MAX_LENGTH) {
30: $excerpt = mb_substr($excerpt, 0, self::EXCERPT_MAX_LENGTH);
31: if ($lastSpace = mb_strrpos($excerpt, ' ')) {
[/home/americang/public_html/forum/library/Vanilla/Formatting/FormatService.php:66] Vanilla\Formatting\BaseFormat->renderExcerpt();
[/home/americang/public_html/forum/library/core/class.format.php:640] Vanilla\Formatting\FormatService->renderExcerpt();
[/home/americang/public_html/forum/applications/vanilla/models/class.discussionmodel.php:3304] Gdn_Format::excerpt();
[/home/americang/public_html/forum/applications/vanilla/controllers/class.discussioncontroller.php:308] DiscussionModel->structuredData();
[/home/americang/public_html/forum/library/core/class.dispatcher.php:872] DiscussionController->index();
[/home/americang/public_html/forum/library/core/class.dispatcher.php:289] Gdn_Dispatcher->dispatchController();
[/home/americang/public_html/forum/index.php:29] Gdn_Dispatcher->dispatch();
If you are a user of this website, you can report this message to a website administrator.
If you are an administrator of this website, you can get help at the Vanilla Community Forums.