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

Bug: T173711
Change-Id: If8b354b2788285ea27472bf9a16544f8e5c091f8
This commit is contained in:
David Lynch 2017-08-29 12:01:33 -05:00
parent 550408f863
commit dc101c6169

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 ) {