aboutsummaryrefslogtreecommitdiff
path: root/bridges/WikipediaBridge.php
diff options
context:
space:
mode:
Diffstat (limited to 'bridges/WikipediaBridge.php')
-rw-r--r--bridges/WikipediaBridge.php6
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);
}
rash Unnamed repository; edit this file 'description' to name the repository.
aboutsummaryrefslogtreecommitdiff
path: root/integration/bunjs-only-snippets/setTimeout.test.js (unfollow)
AgeCommit message (Collapse)AuthorFilesLines
2022-03-23[bun.js] Implement Bun.write()Gravatar Jarred SUmner 11-63/+959
2022-03-22Handle integer sizes greater than i32Gravatar Jarred SUmner 14-74/+142
2022-03-22Linux-specific tweaksGravatar Jarred SUmner 6-43/+52
2022-03-22`Response.file` -> `Bun.file`Gravatar Jarred Sumner 3-72/+65
2022-03-21sendfile worksGravatar Jarred Sumner 7-62/+174
2022-03-21[bun.js] 2/? Implement `Response.file`, sendfile editionGravatar Jarred Sumner 8-161/+506
2022-03-21[bun.js] 1/? Implement `Response.file`Gravatar Jarred Sumner 13-103/+1103