Filter HTML from some attributes

Bug: T138142
Change-Id: Ie5048b38ed397ce852d3f9145a63fe4f52930da9
This commit is contained in:
Gergő Tisza 2016-06-19 13:46:00 +02:00 committed by Gergő Tisza
parent dba273ac31
commit 3c71b85c84

View file

@ -15,7 +15,7 @@
* along with MediaViewer. If not, see <http://www.gnu.org/licenses/>.
*/
( function ( mw, $ ) {
( function ( mw ) {
var LP;
/**
@ -125,16 +125,14 @@
var shortName = this.getShortName();
if ( this.deedUrl ) {
return this.htmlUtils.jqueryToHtml(
$( '<a>' ).prop( {
href: this.deedUrl,
title: this.longName || shortName
} ).text( shortName )
);
return this.htmlUtils.makeLinkText( shortName, {
href: this.deedUrl,
title: this.longName || shortName
} );
} else {
return shortName;
}
};
mw.mmv.model.License = License;
}( mediaWiki, jQuery ) );
}( mediaWiki ) );