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 = '

' . $article->title . '

'; - $content .= '' . $article->abstract . ''; + //$content .= '' . $article->abstract . ''; $content .= '
Page ' . $article->page . '
'; if (count($article->rubrics)) @@ -165,6 +165,10 @@ { $content .= '

' .$item->content . '

'; } + else if ($item->class == 'introduction') + { + $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);