mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-25 11:45:58 +00:00
Fixed page listing excerpts not showing due to encoding issues
This commit is contained in:
parent
61577cf6bf
commit
6bd49bcd4b
@ -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');
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user