bbcode list

git-svn-id: file:///home/shish/svn/shimmie2/trunk@830 7f39781d-f577-437e-ae19-be835c7a54ca
This commit is contained in:
shish 2008-04-20 15:29:40 +00:00
parent 3bb3a42e75
commit 811bf0e16b

View File

@ -26,6 +26,7 @@ class BBCode extends Extension {
$text = preg_replace("/\[h2\](.*?)\[\/h2\]/s", "<h2>\\1</h2>", $text); $text = preg_replace("/\[h2\](.*?)\[\/h2\]/s", "<h2>\\1</h2>", $text);
$text = preg_replace("/\[h3\](.*?)\[\/h3\]/s", "<h3>\\1</h3>", $text); $text = preg_replace("/\[h3\](.*?)\[\/h3\]/s", "<h3>\\1</h3>", $text);
$text = preg_replace("/\[h4\](.*?)\[\/h4\]/s", "<h4>\\1</h4>", $text); $text = preg_replace("/\[h4\](.*?)\[\/h4\]/s", "<h4>\\1</h4>", $text);
$text = preg_replace("/\[list\](.*?)\[\/list\]/s", "<ul>\\1</ul>", $text);
$text = preg_replace("/\[ul\](.*?)\[\/ul\]/s", "<ul>\\1</ul>", $text); $text = preg_replace("/\[ul\](.*?)\[\/ul\]/s", "<ul>\\1</ul>", $text);
$text = preg_replace("/\[ol\](.*?)\[\/ol\]/s", "<ol>\\1</ol>", $text); $text = preg_replace("/\[ol\](.*?)\[\/ol\]/s", "<ol>\\1</ol>", $text);
$text = preg_replace("/\[li\](.*?)\[\/li\]/s", "<li>\\1</li>", $text); $text = preg_replace("/\[li\](.*?)\[\/li\]/s", "<li>\\1</li>", $text);
@ -50,6 +51,7 @@ class BBCode extends Extension {
$text = preg_replace("/\[h2\](.*?)\[\/h2\]/s", "\\1", $text); $text = preg_replace("/\[h2\](.*?)\[\/h2\]/s", "\\1", $text);
$text = preg_replace("/\[h3\](.*?)\[\/h3\]/s", "\\1", $text); $text = preg_replace("/\[h3\](.*?)\[\/h3\]/s", "\\1", $text);
$text = preg_replace("/\[h4\](.*?)\[\/h4\]/s", "\\1", $text); $text = preg_replace("/\[h4\](.*?)\[\/h4\]/s", "\\1", $text);
$text = preg_replace("/\[list\](.*?)\[\/list\]/s", "\\1", $text);
$text = preg_replace("/\[ul\](.*?)\[\/ul\]/s", "\\1", $text); $text = preg_replace("/\[ul\](.*?)\[\/ul\]/s", "\\1", $text);
$text = preg_replace("/\[ol\](.*?)\[\/ol\]/s", "\\1", $text); $text = preg_replace("/\[ol\](.*?)\[\/ol\]/s", "\\1", $text);
$text = preg_replace("/\[li\](.*?)\[\/li\]/s", "\\1", $text); $text = preg_replace("/\[li\](.*?)\[\/li\]/s", "\\1", $text);