]> git.mxchange.org Git - friendica-addons.git/blobdiff - ijpost/ijpost.php
Functions moved to HTML
[friendica-addons.git] / ijpost / ijpost.php
index a5f98f451d0884ca594e24286c7c589eb9803d21..d2a3071eb742a5ef600d1b83e9c3fb4d6f2410da 100644 (file)
@@ -15,6 +15,7 @@ use Friendica\Core\Logger;
 use Friendica\Core\PConfig;
 use Friendica\Util\DateTimeFormat;
 use Friendica\Util\Network;
+use Friendica\Util\XML;
 
 function ijpost_install()
 {
@@ -185,7 +186,7 @@ function ijpost_send(&$a, &$b)
        if ($ij_username && $ij_password && $ij_blog) {
                $title = $b['title'];
                $post = BBCode::convert($b['body']);
-               $post = xmlify($post);
+               $post = XML::escape($post);
                $tags = ijpost_get_tags($b['tag']);
 
                $date = DateTimeFormat::convert($b['created'], $tz);