From 43da1429cc85beee5b02e63635757700171e602e Mon Sep 17 00:00:00 2001 From: Friendika Date: Tue, 13 Sep 2011 04:53:17 -0700 Subject: [PATCH] import image sizes from html source --- include/html2bbcode.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/include/html2bbcode.php b/include/html2bbcode.php index d4e8cce666..8025c336bc 100644 --- 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', @@ -50,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",