From 865cbbec415a0b5c03e0188b1f54f0c2288862cb Mon Sep 17 00:00:00 2001 From: Aryeh Gregor Date: Mon, 8 Feb 2010 20:05:17 +0000 Subject: [PATCH] Unescape entities for prettier/more consistent IDs Only affects $wgExperimentalHtmlIds = true. --- includes/Sanitizer.php | 1 + 1 file changed, 1 insertion(+) diff --git a/includes/Sanitizer.php b/includes/Sanitizer.php index 9dd648cb08..810284324b 100644 --- a/includes/Sanitizer.php +++ b/includes/Sanitizer.php @@ -881,6 +881,7 @@ class Sanitizer { $options = (array)$options; if ( $wgHtml5 && $wgExperimentalHtmlIds && !in_array( 'legacy', $options ) ) { + $id = Sanitizer::decodeCharReferences( $id ); $id = preg_replace( '/[ \t\n\r\f_\'"&]+/', '_', $id ); $id = trim( $id, '_' ); if ( $id === '' ) { -- 2.20.1