diff --git a/epub.php b/epub.php index 59c8c9b..7957d6b 100644 --- a/epub.php +++ b/epub.php @@ -139,7 +139,7 @@ $article = json_decode($articlejson); $content = '
' .$item->content . '
'; + } else { $content .= '' .$item->content . '
'; @@ -278,7 +282,7 @@ } $pagecontent .= $articlebody->HtmlText; - $epub->AddPage($pagecontent, false, strip_tags($articlebody->Title), true); + $epub->AddPage($pagecontent, false, str_replace(' ', ' ', strip_tags($articlebody->Title)), true); } } write_epub($epub);