mirror of
https://github.com/getgrav/grav.git
synced 2026-07-04 12:49:06 +02:00
Fixed $page->summary() always striping HTML tags if the summary was set by $page->setSummary()
This commit is contained in:
@@ -610,8 +610,7 @@ class Page implements PageInterface
|
||||
$content = $textOnly ? strip_tags($this->content()) : $this->content();
|
||||
$summary_size = $this->summary_size;
|
||||
} else {
|
||||
$content = strip_tags($this->summary);
|
||||
// Use mb_strwidth to deal with the 2 character widths characters
|
||||
$content = $textOnly ? strip_tags($this->summary) : $this->summary;
|
||||
$summary_size = mb_strwidth($content, 'utf-8');
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user