mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-07-27 06:01:54 +03:00
Fixed page listing excerpts not showing due to encoding issues
This commit is contained in:
@ -45,7 +45,8 @@ class Page extends Entity
|
|||||||
|
|
||||||
public function getExcerpt($length = 100)
|
public function getExcerpt($length = 100)
|
||||||
{
|
{
|
||||||
return strlen($this->text) > $length ? substr($this->text, 0, $length-3) . '...' : $this->text;
|
$text = strlen($this->text) > $length ? substr($this->text, 0, $length-3) . '...' : $this->text;
|
||||||
|
return mb_convert_encoding($text, 'UTF-8');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user