Use htmlspecialchars not htmlentities to escape tags on Version.
authorBrian Wolff <bawolff+wn@gmail.com>
Fri, 11 Jul 2014 22:02:20 +0000 (19:02 -0300)
committerBrian Wolff <bawolff+wn@gmail.com>
Fri, 11 Jul 2014 22:03:22 +0000 (19:03 -0300)
htmlentities assumes that the text is iso 8859-1 prior to php 5.4

Also we use htmlspecialchars almost everywhere else.

Bug: 67840
Change-Id: I73364ac34ef7a24c48c09ec1f87102a6cbee8d8f

includes/specials/SpecialVersion.php

index 576b625..a857da4 100644 (file)
@@ -513,7 +513,7 @@ class SpecialVersion extends SpecialPage {
                        );
 
                        array_walk( $tags, function ( &$value ) {
-                               $value = '&lt;' . htmlentities( $value ) . '&gt;';
+                               $value = '&lt;' . htmlspecialchars( $value ) . '&gt;';
                        } );
                        $out .= $this->listToText( $tags );
                } else {