mirror of
https://github.com/getgrav/grav.git
synced 2025-02-20 19:56:53 +01:00
Fixed $page->summary() always striping HTML tags if the summary was set by $page->setSummary()
This commit is contained in:
parent
14eaa4d00a
commit
9ed3da3df2
|
|
@ -1,3 +1,9 @@
|
|||
# v1.7.0-beta.6
|
||||
## mm/dd/2019
|
||||
|
||||
1. [](#bugfix)
|
||||
* Fixed `$page->summary()` always striping HTML tags if the summary was set by `$page->setSummary()`
|
||||
|
||||
# v1.7.0-beta.5
|
||||
## 08/11/2019
|
||||
|
||||
|
|
|
|||
|
|
@ -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');
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user