X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=include%2Fhtml2bbcode.php;h=8025c336bc9ca5b3aa7cf7ce6044af7bd90108e7;hb=64d0616762efcff413a335f2fdde4d8219d44895;hp=734282d95c2f398ec0499777c12242508979b17c;hpb=05c52ae81da6ce3c3b57672c2560072e1ce2705c;p=friendica.git diff --git a/include/html2bbcode.php b/include/html2bbcode.php old mode 100644 new mode 100755 index 734282d95c..8025c336bc --- a/include/html2bbcode.php +++ b/include/html2bbcode.php @@ -24,6 +24,10 @@ function html2bbcode($s) { '/\(.*?)\<\/u\>/is', '/\(.*?)\<\/ul\>/is', '/\(.*?)\<\/li\>/is', + '/\/is', + '/\/is', + '/\/is', + '/\/is', '/\/is', '/\(.*?)\<\/div\>/is', '/\/is', @@ -35,6 +39,7 @@ function html2bbcode($s) { '/\(.*?)\<\/blockquote\>/is', '/\(.*?)\<\/video\>/is', '/\(.*?)\<\/audio\>/is', + '/\(.*?)\<\/iframe\>/is', ); @@ -49,6 +54,10 @@ function html2bbcode($s) { '[u]$1[/u]', '[list]$1[/list]', '[*]$1', + '[img=$2x$4]$6[/img]', + '[img=$4x$2]$6[/img]', + '[img=$4x$6]$2[/img]', + '[img=$6x$4]$2[/img]', '[img]$2[/img]', '$2', "\n", @@ -60,6 +69,7 @@ function html2bbcode($s) { '[quote]$1[/quote]', '[video]$1[/video]', '[audio]$1[/audio]', + '[iframe]$1[/iframe]', ); // Replace $htmltags in $text with $bbtags