mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/MultimediaViewer
synced 2024-11-12 09:27:36 +00:00
Sanitize embed HTML
Make sure tables, lists and other complex stuff do not get into the embed HTML code. Change-Id: I559dc7892e058e403ddde6994a7e1ac0c9585325 Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/369
This commit is contained in:
parent
b9b1529e9b
commit
fff25694bb
|
@ -76,6 +76,9 @@
|
|||
* @return {string} byline (can contain HTML)
|
||||
*/
|
||||
EFFP.getByline = function ( author, source ) {
|
||||
author = author && this.htmlUtils.htmlToTextWithLinks( author );
|
||||
source = source && this.htmlUtils.htmlToTextWithLinks( source );
|
||||
|
||||
if ( author && source) {
|
||||
return mw.message(
|
||||
'multimediaviewer-credit',
|
||||
|
|
Loading…
Reference in a new issue