HTMLForm entity labels are now optional and escaped
authorMatt Walker <mwalker@wikimedia.org>
Tue, 16 Apr 2013 18:05:50 +0000 (11:05 -0700)
committerMatt Walker <mwalker@wikimedia.org>
Wed, 1 May 2013 00:54:07 +0000 (17:54 -0700)
commit4497500e7bdeb7695dce7918d3437b06bc7d031f
treea04d384de9160a3cc1abd77e9d747bc084ba7509
parentde336c6dd7432425dc832b4e73b2a658d3113901
HTMLForm entity labels are now optional and escaped

Things like checkboxes have no label, yet a label div gets generated
anyway. This is annoying when maybe I don't want that empty div hanging
around (i.e., it looks like it's part of other option groups when I
have left margins on all .mw-input).

This patch will now also escape 'label' fields by default. For the old
functionality you must now explicitly use the 'label-raw' field.

Change-Id: I8f8340911b7495a91c93e7f2eb7c041b2a7f2179
includes/HTMLForm.php
includes/Preferences.php