ソースを参照

Added line break to allowed tags in details page

Taddeus Kroes 12 年 前
コミット
1d22821f42
1 ファイル変更1 行追加1 行削除
  1. 1 1
      details.php

+ 1 - 1
details.php

@@ -47,7 +47,7 @@ $page = file_get_contents($url);
 // Parse detailed description, preserving a selected set of HTML tags
 preg_match('/<div\s+id="prog-content">\s*(.*?)\s*<div\s+class="prog-functionbar">/s', $page, $m1);
 assert($m1);
-$description = strip_tags($m1[1], '<p><strong><em><b><i><font><a><span><img>');
+$description = strip_tags($m1[1], '<p><strong><em><b><i><font><a><span><img><br>');
 $description = str_replace('showVideoPlaybutton()', '', $description);
 $description = clean_html($description);
 //$description = preg_replace('/\s+/', ' ', $description);