Underscores etc. aren't valid in HTML IDs, so escape them properly
authorJack Phoenix <jack@countervandalism.net>
Mon, 4 May 2015 00:10:06 +0000 (03:10 +0300)
committerJack Phoenix <jack@countervandalism.net>
Mon, 4 May 2015 19:44:16 +0000 (22:44 +0300)
commit9f286710dc290152d551ba2af4d1defbd307f428
tree8fa332710ac5ad9b3d68b34a1a849e609576ee3c
parent8fce906753606fe8d32b7de528c213a32f44b9c7
Underscores etc. aren't valid in HTML IDs, so escape them properly

This was an issue where a skin's/extension's name would contain spaces,
i.e. "Cologne Blue", "Renameuser for CentralAuth". Such a name would be
passed as-is to the HTML ID, but spaces aren't valid in IDs, and this
would in turn lead to HTML validation issues. Currently the English
Wikipedia's Special:Version page has 26 validation issues and this patch
fixes the supermajority of them.

Change-Id: Ia197b0208fa2abfebbea1cb23f08822db2938162
includes/specials/SpecialVersion.php