Sniedzielski has submitted this change and it was merged.

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(-)

Approvals:
  Sniedzielski: Verified; Looks good to me, approved



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: merged
Gerrit-Change-Id: Id3c04ee653951811618a2c1942d151989c751a35
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/services/mobileapps
Gerrit-Branch: master
Gerrit-Owner: Mholloway <[email protected]>
Gerrit-Reviewer: BearND <[email protected]>
Gerrit-Reviewer: Bgerstle <[email protected]>
Gerrit-Reviewer: Dbrant <[email protected]>
Gerrit-Reviewer: Fjalapeno <[email protected]>
Gerrit-Reviewer: GWicke <[email protected]>
Gerrit-Reviewer: Mholloway <[email protected]>
Gerrit-Reviewer: Mhurd <[email protected]>
Gerrit-Reviewer: Mobrovac <[email protected]>
Gerrit-Reviewer: Niedzielski <[email protected]>
Gerrit-Reviewer: Sniedzielski <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to