Merge pull request #3 from Roliga/unicode-fix

Handle unicode in excerpt
This commit is contained in:
Roliga 2019-04-14 16:27:29 +02:00 committed by GitHub
commit 5d732baf59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -74,6 +74,7 @@ class Discord_Webhook extends Plugin {
if ($content_length > 0) {
$content_stripped = preg_replace('#<br\s*/?>#i', "\n", $article["content"]);
$content_stripped = strip_tags($content_stripped);
$content_stripped = html_entity_decode($content_stripped);
$content_stripped = trim($content_stripped);
if (strlen($content_stripped) > $content_length) {