fix missing article header
This commit is contained in:
parent
4b4179cf8a
commit
c6f604c28b
10
epub.php
10
epub.php
|
@ -78,7 +78,8 @@
|
|||
{
|
||||
$node = $nodes->item(0);
|
||||
$nodehtml = get_clean_html($node);
|
||||
$epub->AddPage($nodehtml, false, $title);
|
||||
$result .= $nodehtml;
|
||||
$epub->AddPage($result, false, $title);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -463,7 +464,6 @@
|
|||
$doc->loadHTML($article);
|
||||
$finder = new DomXPath($doc);
|
||||
|
||||
|
||||
$result = '<h1>' . $title . '</h1>';
|
||||
$result .= '<p>' . $author . '</p>';
|
||||
$result .= '<p>' . $item->pubDate . '</p>';
|
||||
|
@ -479,7 +479,8 @@
|
|||
{
|
||||
$node = $nodes->item(0);
|
||||
$nodehtml = get_clean_html($node);
|
||||
$epub->AddPage($nodehtml, false, $title);
|
||||
$result .= $nodehtml;
|
||||
$epub->AddPage($result, false, $title);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -547,7 +548,8 @@
|
|||
{
|
||||
$node = $nodes->item(0);
|
||||
$nodehtml = get_clean_html($node);
|
||||
$epub->AddPage($nodehtml, false, $title);
|
||||
$result .= $nodehtml;
|
||||
$epub->AddPage($result, false, $title);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue