Use .text instead of .html for the extract

This is alright because we are setting `explaintext` to
`true` in the API call.

Change-Id: I04df151a31ca60f058ea226efe17841b0eb663c4
This commit is contained in:
Prateek Saxena 2014-02-18 16:01:00 +05:30
parent 54b409cee2
commit 37ddb1997f

View file

@ -45,7 +45,7 @@
var $a,
page = re.query.pages[re.query.pageids[0]],
$contentbox = $( '<div>' ).addClass( 'mwe-popups-extract' ).html( page.extract ),
$contentbox = $( '<div>' ).addClass( 'mwe-popups-extract' ).text( page.extract ),
thumbnail = page.thumbnail,
tall = thumbnail && thumbnail.height > thumbnail.width,
$thumbnail = createThumbnail( thumbnail, tall ),