]> git.mxchange.org Git - friendica.git/blobdiff - include/bbcode.php
fix banner in duepuntozero
[friendica.git] / include / bbcode.php
index a44838c2462dc49ffba46eaebe5bc1d9edaff608..40f4935fba21aecba992fa4d6c7277a2ea75dd1a 100644 (file)
@@ -97,6 +97,7 @@ function bbcode($Text,$preserve_nl = false) {
 
        $Text = preg_replace("/\[audio\](.*?)\[\/audio\]/", '<audio src="$1" controls="controls"><a href="$1">$1</a></audio>', $Text);
 
+       $Text = preg_replace("/\[iframe\](.*?)\[\/iframe\]/", '<iframe src="$1" width="425" height="350"><a href="$1">$1</a></iframe>', $Text);
          
        // [img=widthxheight]image source[/img]
        $Text = preg_replace("/\[img\=([0-9]*)x([0-9]*)\](.*?)\[\/img\]/", '<img src="$3" style="height:{$2}px; width:{$1}px;" >', $Text);