$child = $content->childNodes->item($i);
if ($child->hasChildNodes()) {
- return $this->doc->saveXML($child);
+ return $this->doc->saveHTML($child);
}
}
}
$child = $content->childNodes->item($i);
if ($child->hasChildNodes()) {
- return $this->doc->saveXML($child);
+ return $this->doc->saveHTML($child);
}
}
}
return $encs;
}
-}
\ No newline at end of file
+}
$basenode = $xpath->query('//div[@class="comicpage"]/a/img')->item(0);
if ($basenode) {
- $article["content"] = $doc->saveXML($basenode);
+ $article["content"] = $doc->saveHTML($basenode);
}
}
return false;
}
-}
\ No newline at end of file
+}
$basenode = $xpath->query('//div[@class="comic"]')->item(0);
if ($basenode) {
- $article["content"] = $doc->saveXML($basenode);
+ $article["content"] = $doc->saveHTML($basenode);
}
}
return false;
}
-}
\ No newline at end of file
+}
$basenode = $xpath->query('//div[@id="comic"]')->item(0);
if ($basenode) {
- $article["content"] = $doc->saveXML($basenode);
+ $article["content"] = $doc->saveHTML($basenode);
}
}
return false;
}
-}
\ No newline at end of file
+}
if ($basenode) {
- $article["content"] = $doc->saveXML($basenode);
+ $article["content"] = $doc->saveHTML($basenode);
}
}
return false;
}
-}
\ No newline at end of file
+}
}
if ($basenode) {
- $article["content"] = $doc->saveXML($basenode);
+ $article["content"] = $doc->saveHTML($basenode);
}
// Add comic title to article type if not empty (mostly Sunday strips)
$basenode = $xpath->query('(//img[@id="main-comic"])')->item(0);
if ($basenode) {
- $article["content"] = $doc->saveXML($basenode);
+ $article["content"] = $doc->saveHTML($basenode);
}
}
return false;
}
-}
\ No newline at end of file
+}
$basenode = $xpath->query('(//div[@id="comicFrame"])')->item(0);
if ($basenode) {
- $article["content"] = $doc->saveXML($basenode);
+ $article["content"] = $doc->saveHTML($basenode);
}
}
}
if ($basenode){
- $article["content"] = $doc->saveXML($basenode);
+ $article["content"] = $doc->saveHTML($basenode);
}
}
return false;
}
-}
\ No newline at end of file
+}
$basenode = $xpath->query('//section[@class="comic-art"]')->item(0);
if ($basenode) {
- $article["content"] = $doc->saveXML($basenode);
+ $article["content"] = $doc->saveHTML($basenode);
}
}
return false;
}
-}
\ No newline at end of file
+}
$basenode = $xpath->query('//img[contains(@src, ".gif")]')->item(0);
if ($basenode) {
- $article["content"] = $doc->saveXML($basenode);
+ $article["content"] = $doc->saveHTML($basenode);
return true;
}
}
return false;
}
-}
\ No newline at end of file
+}
$basenode = $xpath->query("//td/center/img")->item(0);
if ($basenode) {
- $article["content"] = $doc->saveXML($basenode);
+ $article["content"] = $doc->saveHTML($basenode);
}
}
return false;
}
-}
\ No newline at end of file
+}
$basenode = $xpath->query('//img[@id="cc-comic"]')->item(0);
if ($basenode) {
- $article["content"] = $doc->saveXML($basenode);
+ $article["content"] = $doc->saveHTML($basenode);
}
}
return false;
}
-}
\ No newline at end of file
+}
$tpl->setVariable('ARTICLE_LINK', $article_link, true);
$tpl->setVariable('ARTICLE_TITLE', date('l, F d, Y'), true);
$tpl->setVariable('ARTICLE_EXCERPT', '', true);
- $tpl->setVariable('ARTICLE_CONTENT', $doc->saveXML($node), true);
+ $tpl->setVariable('ARTICLE_CONTENT', $doc->saveHTML($node), true);
$tpl->setVariable('ARTICLE_AUTHOR', '', true);
$tpl->setVariable('ARTICLE_SOURCE_LINK', $site_url, true);
return 2;
}
-}
\ No newline at end of file
+}
}
}
- $article["content"] = $doc->saveXML();
+ $article["content"] = $doc->saveHTML();
}
return 2;
}
-}
\ No newline at end of file
+}
$node = $doc->getElementsByTagName('body')->item(0);
if ($node && $found) {
- $article["content"] = $doc->saveXML($node);
+ $article["content"] = $doc->saveHTML($node);
} else if ($content_link) {
$article = $this->readability($article, $content_link->getAttribute("href"), $doc, $xpath);
}
}
}
- if ($need_saving) $article["content"] = $doc->saveXML();
+ if ($need_saving) $article["content"] = $doc->saveHTML();
return $article;
}
function api_version() {
return 2;
}
-}
\ No newline at end of file
+}