]> git.mxchange.org Git - friendica.git/commitdiff
close correctly `span` tag in `oembed_format_object()`
authorfabrixxm <fabrix.xm@gmail.com>
Tue, 2 Jun 2015 16:38:16 +0000 (18:38 +0200)
committerfabrixxm <fabrix.xm@gmail.com>
Tue, 2 Jun 2015 16:38:16 +0000 (18:38 +0200)
fix issue #1612

include/oembed.php

index 6fc981729944a29323b969bb6fcdf78ba1de1b4c..26746af51c17e13d637c4c177940abec99dc5489 100755 (executable)
@@ -193,8 +193,9 @@ function oembed_format_object($j){
        } else {
                // add <a> for html2bbcode conversion
                $ret .= "<a href='$embedurl' rel='oembed'>$embedurl</a>";
-               $ret.="<br style='clear:left'></span>";
+               $ret .= "<br style='clear:left'>";
        }
+       $ret.="</span>";
        return  mb_convert_encoding($ret, 'HTML-ENTITIES', mb_detect_encoding($ret));
 }