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:
Gergő Tisza 2014-03-25 22:18:15 +00:00
parent b9b1529e9b
commit fff25694bb

View file

@ -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',