X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fspecials%2FSpecialRecentchanges.php;h=4f2158641855db28dbdfc243a0dd8da0cd5a1ec6;hp=05bcc4de6b3a168751ed081ef13ba1ab33b668cb;hb=7d623a35bb305b7233a3c2181879fee9ba6c1274;hpb=28c96dbb83a27f23d1295a9cd621f9ba7a1462ff diff --git a/includes/specials/SpecialRecentchanges.php b/includes/specials/SpecialRecentchanges.php index 05bcc4de6b..4f21586418 100644 --- a/includes/specials/SpecialRecentchanges.php +++ b/includes/specials/SpecialRecentchanges.php @@ -203,10 +203,6 @@ class SpecialRecentChanges extends ChangesListSpecialPage { * @return Array Tag data */ protected function buildChangeTagList() { - function stripAllHtml( $input ) { - return trim( html_entity_decode( strip_tags( $input ) ) ); - } - $explicitlyDefinedTags = array_fill_keys( ChangeTags::listExplicitlyDefinedTags(), 0 ); $softwareActivatedTags = array_fill_keys( ChangeTags::listSoftwareActivatedTags(), 0 ); $tagStats = ChangeTags::tagUsageStatistics(); @@ -229,8 +225,10 @@ class SpecialRecentChanges extends ChangesListSpecialPage { $result[] = [ 'name' => $tagName, - 'label' => stripAllHtml( ChangeTags::tagDescription( $tagName, $this->getContext() ) ), - 'description' => $desc ? stripAllHtml( $desc->parse() ) : '', + 'label' => Sanitizer::stripAllTags( + ChangeTags::tagDescription( $tagName, $this->getContext() ) + ), + 'description' => $desc ? Sanitizer::stripAllTags( $desc->parse() ) : '', 'cssClass' => Sanitizer::escapeClass( 'mw-tag-' . $tagName ), 'hits' => $hits, ];