Fix book comment handling ... once again
This commit is contained in:
parent
75862fe24c
commit
02b55687e2
2
base.php
2
base.php
|
@ -32,7 +32,7 @@ function html2xhtml ($html) {
|
||||||
$doc->loadHTML($html); // Load the HTML
|
$doc->loadHTML($html); // Load the HTML
|
||||||
$output = utf8_decode($doc->saveXML($doc->documentElement)); // Transform to an Ansi xml stream
|
$output = utf8_decode($doc->saveXML($doc->documentElement)); // Transform to an Ansi xml stream
|
||||||
$output = xml2xhtml($output); // Fix the br / hr ...
|
$output = xml2xhtml($output); // Fix the br / hr ...
|
||||||
if (preg_match ("/<html><body>(.*)<\/body><\/html>/", $output, $matches)) {
|
if (preg_match ("#<html><body>(.*)</body></html>#ms", $output, $matches)) {
|
||||||
$output = $matches [1]; // Remove <html><body>
|
$output = $matches [1]; // Remove <html><body>
|
||||||
}
|
}
|
||||||
return $output;
|
return $output;
|
||||||
|
|
Loading…
Reference in a new issue