X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fcontent%2FWikitextContent.php;h=bc20aa002031b24a1c632c9aa8f74c61f844d9a3;hb=7ce640bd612ad49e7fa1b9f4d224a448fbc09a8e;hp=942390f68ff8d35473bba2050172e02792cd26b5;hpb=e0f53bfb8dd461f52dbfe1339323704e7cac55fe;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/content/WikitextContent.php b/includes/content/WikitextContent.php index 942390f68f..bc20aa0020 100644 --- a/includes/content/WikitextContent.php +++ b/includes/content/WikitextContent.php @@ -87,7 +87,7 @@ class WikitextContent extends TextContent { if ( $sectionId === 'new' ) { # Inserting a new section $subject = $sectionTitle ? wfMessage( 'newsectionheaderdefaultlevel' ) - ->rawParams( $sectionTitle )->inContentLanguage()->text() . "\n\n" : ''; + ->plaintextParams( $sectionTitle )->inContentLanguage()->text() . "\n\n" : ''; if ( Hooks::run( 'PlaceNewSection', [ $this, $oldtext, $subject, &$text ] ) ) { $text = strlen( trim( $oldtext ) ) > 0 ? "{$oldtext}\n\n{$subject}{$text}"