Skip to content

Commit

Permalink
Fix for entities not being properly decoded in Page::summary() #825
Browse files Browse the repository at this point in the history
  • Loading branch information
rhukster committed May 9, 2016
1 parent 59c320e commit 30163aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
* Fix handling "grav" as a dependency
* Fix when installing multiple packages and one is the dependency of another, don't try to install it twice
* Fix using name instead of the slug to determine a package folder. Broke for packages whose name was 2+ words
* Fix for summary entities not being properly decoded [#825](https://github.com/getgrav/grav/issues/825)

# v1.1.0-beta.2
## 04/27/2016
Expand Down
2 changes: 1 addition & 1 deletion system/src/Grav/Common/Page/Page.php
Original file line number Diff line number Diff line change
Expand Up @@ -500,7 +500,7 @@ public function summary($size = null)
$size = 300;
}

return Utils::truncateHTML($content, $size);
return html_entity_decode(Utils::truncateHTML($content, $size));
}

/**
Expand Down

0 comments on commit 30163aa

Please sign in to comment.