Merge pull request #3 from Roliga/unicode-fix

Handle unicode in excerpt
master
Roliga 3 years ago committed by GitHub
commit 5d732baf59
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      init.php

@ -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) {

Loading…
Cancel
Save