Skip to content

Commit

Permalink
Truncator: encoding problems solves #2154
Browse files Browse the repository at this point in the history
As I am not a developer somebody should review the change.
  • Loading branch information
eisenherzz authored and mahagr committed Feb 10, 2020
1 parent 29c6a70 commit c2f374f
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -613,7 +613,7 @@ public function summary($size = null, $textOnly = false)

$summary = Utils::truncateHtml($content, $size);

return html_entity_decode($summary);
return html_entity_decode($summary,ENT_COMPAT | ENT_HTML401, 'utf-8');
}

/**
Expand Down

0 comments on commit c2f374f

Please sign in to comment.