mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-11-23 23:24:39 +00:00
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:
parent
54b409cee2
commit
37ddb1997f
|
@ -45,7 +45,7 @@
|
||||||
|
|
||||||
var $a,
|
var $a,
|
||||||
page = re.query.pages[re.query.pageids[0]],
|
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,
|
thumbnail = page.thumbnail,
|
||||||
tall = thumbnail && thumbnail.height > thumbnail.width,
|
tall = thumbnail && thumbnail.height > thumbnail.width,
|
||||||
$thumbnail = createThumbnail( thumbnail, tall ),
|
$thumbnail = createThumbnail( thumbnail, tall ),
|
||||||
|
|
Loading…
Reference in a new issue