]> git.mxchange.org Git - friendica-addons.git/blobdiff - windowsphonepush/windowsphonepush.php
IS translation statusnet addon THX Sveinn í Felli
[friendica-addons.git] / windowsphonepush / windowsphonepush.php
index 206b0883e4b03241db96b7909d50ea28372a853e..3aaf1d3092e90434cf12eb25cd10bde10da3a8ae 100644 (file)
@@ -28,6 +28,7 @@
 
 use Friendica\App;
 use Friendica\Content\Text\BBCode;
+use Friendica\Content\Text\HTML;
 use Friendica\Core\Addon;
 use Friendica\Core\L10n;
 use Friendica\Core\PConfig;
@@ -211,10 +212,8 @@ function windowsphonepush_cron()
                                                if (substr($body, 0, 4) == "[url") {
                                                        $body = "URL/Image ...";
                                                } else {
-                                                       require_once("include/html2plain.php");
-
                                                        $body = BBCode::convert($body, false, 2, true);
-                                                       $body = html2plain($body, 0);
+                                                       $body = HTML::toPlaintext($body, 0);
                                                        $body = ((strlen($body) > 137) ? substr($body, 0, 137) . "..." : $body);
                                                }
                                        } else {