Merge pull request #3 from Roliga/unicode-fix
Handle unicode in excerpt
This commit is contained in:
commit
5d732baf59
1
init.php
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…
Reference in New Issue