浏览代码

Code cleanup

Taddeus Kroes 12 年之前
父节点
当前提交
3342e5d3bf
共有 1 个文件被更改,包括 3 次插入2 次删除
  1. 3 2
      details.php

+ 3 - 2
details.php

@@ -16,11 +16,11 @@ function clean_html($html) {
         case '<':
             $in_tag = true;
             $cleaned .= clean_tag_content($stack) . '<';
-            $stack = '';
             break;
         case '>':
             $in_tag = false;
             $cleaned .= '>';
+            $stack = '';
             break;
         default:
             if ($in_tag)
@@ -30,7 +30,8 @@ function clean_html($html) {
         }
     }
 
-    $cleaned .= $stack;
+    if (!$in_tag)
+        $cleaned .= clean_tag_content($stack);
 
     return $cleaned;
 }