Mholloway has uploaded a new change for review.
https://gerrit.wikimedia.org/r/238801
Change subject: Request plain text extract in mwapi.js
......................................................................
Request plain text extract in mwapi.js
Currently the service is returning the text extract with HTML markup, but we
only want the text.
Bug: T112777
Change-Id: Id3c04ee653951811618a2c1942d151989c751a35
---
M lib/mwapi.js
1 file changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/services/mobileapps
refs/changes/01/238801/1
diff --git a/lib/mwapi.js b/lib/mwapi.js
index 80770fa..2bfe6d7 100644
--- a/lib/mwapi.js
+++ b/lib/mwapi.js
@@ -131,7 +131,8 @@
format: 'json',
prop: 'extracts',
redirects: true,
- titles: title
+ titles: title,
+ explaintext: true
});
}
--
To view, visit https://gerrit.wikimedia.org/r/238801
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Id3c04ee653951811618a2c1942d151989c751a35
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mobileapps
Gerrit-Branch: master
Gerrit-Owner: Mholloway <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits