From 02b55687e2fd7f1e42925e4ed3d5895f6bf644f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Thu, 7 Mar 2013 10:58:58 +0100 Subject: [PATCH] Fix book comment handling ... once again --- base.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/base.php b/base.php index 9ad0f24..10ca17b 100644 --- a/base.php +++ b/base.php @@ -32,7 +32,7 @@ function html2xhtml ($html) { $doc->loadHTML($html); // Load the HTML $output = utf8_decode($doc->saveXML($doc->documentElement)); // Transform to an Ansi xml stream $output = xml2xhtml($output); // Fix the br / hr ... - if (preg_match ("/(.*)<\/body><\/html>/", $output, $matches)) { + if (preg_match ("#(.*)#ms", $output, $matches)) { $output = $matches [1]; // Remove } return $output;