mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-11-24 22:35:41 +00:00
Merge "mw.ArticleTarget: strip HTML tags entirely from source-mode summary"
This commit is contained in:
commit
50c31a0b29
|
@ -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 ) {
|
||||
|
|
Loading…
Reference in a new issue