mirror of
https://github.com/kolbytn/mindcraft.git
synced 2025-08-10 01:05:33 +02:00
remove navigation tables from parser output in actions.js
This commit is contained in:
parent
76204664cd
commit
cf1fc15920
1 changed files with 5 additions and 1 deletions
|
@ -371,7 +371,11 @@ export const actionsList = [
|
|||
const html = await response.text();
|
||||
const $ = load(html);
|
||||
|
||||
const divContent = $("div.mw-parser-output").text();
|
||||
const parserOutput = $("div.mw-parser-output");
|
||||
|
||||
parserOutput.find("table.navbox").remove();
|
||||
|
||||
const divContent = parserOutput.text();
|
||||
|
||||
return divContent.trim();
|
||||
} catch (error) {
|
||||
|
|
Loading…
Add table
Reference in a new issue