diff --git a/rebuild.php b/rebuild.php
index eb56569..76e0759 100644
--- a/rebuild.php
+++ b/rebuild.php
@@ -116,6 +116,10 @@ function text2html($sz) {
$base = preg_replace('~^=+(.+)=+~m', '\\1', $base);
$base = preg_replace('~(https?://[^ \\r\\n\\t]+)~i', '\\1', $base);
+ $base = preg_replace('~\\[b\\](.+?)\\[/b\\]~m', '\\1', $base);
+ $base = preg_replace('~\\[i\\](.+?)\\[/i\\]~m', '\\1', $base);
+ $base = preg_replace('~\\[spoiler\\](.+?)\\[/spoiler\\]~m', '\\1', $base);
+ $base = preg_replace('~\\[entry=([^\\]]+?)\\](.+?)\\[/entry\\]~m', '\\2', $base);
$btparts = explode('`', $base);
if (count($btparts) > 1 && (count($btparts) % 2)) {