Explorar o código

Added line break to allowed tags in details page

Taddeus Kroes %!s(int64=12) %!d(string=hai) anos
pai
achega
1d22821f42
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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);