]> git.mxchange.org Git - friendica.git/blobdiff - include/bbcode.php
project rename
[friendica.git] / include / bbcode.php
index f1eb47bd3ddf57a0d46e99fc305c63474a443c1a..a315c3e38d8976a12bee8dbfc69e355608ef49aa 100644 (file)
@@ -1,6 +1,6 @@
 <?php
        // BBcode 2 HTML was written by WAY2WEB.net
-       // Made to work with Mistpark - Mike Macgirvin
+       // Made to work with Mistpark/Friendika - Mike Macgirvin
 
 function bbcode($Text) {
        // Replace any html brackets with HTML Entities to prevent executing HTML or script
@@ -76,7 +76,7 @@ function bbcode($Text) {
 
        // Youtube extensions
         $Text = preg_replace("/\[youtube\]http:\/\/www.youtube.com\/watch\?v\=(.+?)\[\/youtube\]/",'[youtube]$1[/youtube]',$Text); 
-       $Text = preg_replace("/\[youtube\](.+?)\[\/youtube\]/", '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/$1"></param><embed src="http://www.youtube.com/v/$1" type="application/x-shockwave-flash" width="425" height="350"></embed></object>', $Text);
+       $Text = preg_replace("/\[youtube\](.+?)\[\/youtube\]/", '<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/$1"></param><!--[if IE]><embed src="http://www.youtube.com/v/$1" type="application/x-shockwave-flash" width="425" height="350" /><![endif]--></object>', $Text);
 
        return $Text;
 }