Merge "mw.ArticleTarget: strip HTML tags entirely from source-mode summary"

This commit is contained in:
jenkins-bot 2017-08-29 19:50:04 +00:00 committed by Gerrit Code Review
commit 50c31a0b29

View file

@ -2027,6 +2027,8 @@ ve.init.mw.ArticleTarget.prototype.restoreEditSection = function () {
.replace( /\[\[:?([^[|]+)\|([^[]+)\]\]/, '$2' )
.replace( /\[\[:?([^[]+)\|?\]\]/, '$1' )
.replace( new RegExp( '\\[(?:' + ve.init.platform.getUnanchoredExternalLinkUrlProtocolsRegExp().source + ')([^ ]+?) ([^\\[]+)\\]', 'i' ), '$3' )
// Cheap HTML removal
.replace( /<[^>]+?>/g, '' )
;
}
if ( headingText ) {