diff options
Diffstat (limited to 'bridges/WikipediaBridge.php')
-rw-r--r-- | bridges/WikipediaBridge.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bridges/WikipediaBridge.php b/bridges/WikipediaBridge.php index a53652dd..7ca763fc 100644 --- a/bridges/WikipediaBridge.php +++ b/bridges/WikipediaBridge.php @@ -141,7 +141,7 @@ class WikipediaBridge extends BridgeAbstract { $anchorFallbackIndex = 0){ // Clean the bottom of the featured article if ($element->find('div', -1)) - $element->find('div', -1)->remove(); + $element->find('div', -1)->outertext = ''; // The title and URI of the article can be found in an anchor containing // the string '...' in most wikis ('full article ...') @@ -202,10 +202,10 @@ class WikipediaBridge extends BridgeAbstract { // Let's remove a couple of things from the article $table = $content->find('#toc', 0); // Table of contents if(!$table === false) - $table->remove(); + $table->outertext = ''; foreach($content->find('ol.references') as $reference) // References - $reference->remove(); + $reference->outertext = ''; return str_replace('href="/', 'href="' . $this->getURI() . '/', $content->innertext); } |