From: Aryeh Gregor Date: Mon, 8 Feb 2010 20:05:17 +0000 (+0000) Subject: Unescape entities for prettier/more consistent IDs X-Git-Tag: 1.31.0-rc.0~37873 X-Git-Url: http://git.cyclocoop.org/%24self?a=commitdiff_plain;h=865cbbec415a0b5c03e0188b1f54f0c2288862cb;p=lhc%2Fweb%2Fwiklou.git Unescape entities for prettier/more consistent IDs Only affects $wgExperimentalHtmlIds = true. --- 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 === '' ) {