mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/VisualEditor
synced 2024-09-25 03:08:42 +00:00
mw.ArticleTarget: strip HTML tags entirely from source-mode summary
Bug: T173711 Change-Id: If8b354b2788285ea27472bf9a16544f8e5c091f8
This commit is contained in:
parent
550408f863
commit
dc101c6169
|
@ -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