]> git.mxchange.org Git - friendica.git/blobdiff - include/html2plain.php
API: Support for entitites. (embedded pictures in twidere)
[friendica.git] / include / html2plain.php
index bcdf89c2cc9b5ef1da0197ae5f2af3a1dda078c1..445a4ab34723cdc0f0a74cf002bd54760a265641 100644 (file)
@@ -191,9 +191,9 @@ function html2plain($html, $wraplength = 75, $compact = false)
        //node2bbcode($doc, 'img', array('title'=>'/(.+)/'), '$1', '');
        //node2bbcode($doc, 'img', array(), '', '');
        if (!$compact)
-               node2bbcode($doc, 'img', array('src'=>'/(.+)/'), '[img]$1', '[/img]');
+               node2bbcode($doc, 'img', array('src'=>'/(.+)/'), ' [img]$1', '[/img] ');
        else
-               node2bbcode($doc, 'img', array('src'=>'/(.+)/'), '', '');
+               node2bbcode($doc, 'img', array('src'=>'/(.+)/'), ' ', ' ');
 
        node2bbcode($doc, 'iframe', array('src'=>'/(.+)/'), ' $1 ', '', true);