mirror of
https://gerrit.wikimedia.org/r/mediawiki/skins/MinervaNeue
synced 2024-12-01 01:06:31 +00:00
Merge "Do not allow raw HTML in talk page overlay header"
This commit is contained in:
commit
30fac0ca85
|
@ -62,7 +62,8 @@ module.exports = function ( mobile ) {
|
||||||
return createOverlay( 'TalkSectionOverlay', {
|
return createOverlay( 'TalkSectionOverlay', {
|
||||||
id: sectionId,
|
id: sectionId,
|
||||||
section: new mobile.Section( {
|
section: new mobile.Section( {
|
||||||
line: $headline.html(),
|
// Strip out any HTML from the headline to avoid links in T243650.
|
||||||
|
line: $( '<span>' ).text( $( $headline ).text() )[ 0 ].outerHTML,
|
||||||
text: $heading.next().html()
|
text: $heading.next().html()
|
||||||
} ),
|
} ),
|
||||||
// FIXME: Replace this api param with onSaveComplete
|
// FIXME: Replace this api param with onSaveComplete
|
||||||
|
|
Loading…
Reference in a new issue