Use \u{00A0} instead of   or  
authorFomafix <fomafix@googlemail.com>
Tue, 27 Dec 2016 21:14:16 +0000 (22:14 +0100)
committerKrinkle <krinklemail@gmail.com>
Sun, 24 Jun 2018 01:20:13 +0000 (01:20 +0000)
commit125cbd8c017b872c78f047c08f494a458883db23
tree4e271c169d5558200f9577e2767403d2ffe9e360
parent0dead475ab85cbd9c106c8fbaa38779b0c16aaea
Use \u{00A0} instead of &#160; or &nbsp;

Directly use the UTF-8 encoding of the 'NO-BREAK SPACE' (U+00A0) instead of
the HTML/XML entities &#160; or &#xa0; or &nbsp;.

With the UTF-8 character the generated HTML is shorter and better to read.

Also change the special value for the label in HTMLForm from &#160; to
U+00A0 but also support &#160; for backward compability.

Bug: T154300
Change-Id: I882599ac1120789bb4e524c4394870680caca4f4
31 files changed:
includes/CategoryViewer.php
includes/Html.php
includes/Xml.php
includes/actions/HistoryAction.php
includes/changes/ChangesList.php
includes/changes/EnhancedChangesList.php
includes/diff/DifferenceEngine.php
includes/diff/TableDiffFormatter.php
includes/diff/WordAccumulator.php
includes/htmlform/HTMLForm.php
includes/htmlform/HTMLFormField.php
includes/htmlform/fields/HTMLButtonField.php
includes/htmlform/fields/HTMLCheckField.php
includes/htmlform/fields/HTMLCheckMatrix.php
includes/htmlform/fields/HTMLFormFieldCloner.php
includes/htmlform/fields/HTMLFormFieldWithButton.php
includes/htmlform/fields/HTMLMultiSelectField.php
includes/htmlform/fields/HTMLRadioField.php
includes/htmlform/fields/HTMLSizeFilterField.php
includes/installer/WebInstaller.php
includes/installer/WebInstallerOptions.php
includes/logging/LogEventsList.php
includes/pager/TablePager.php
includes/specials/SpecialContributions.php
includes/specials/SpecialEmailuser.php
includes/specials/SpecialMergeHistory.php
includes/specials/SpecialWatchlist.php
includes/specials/SpecialWhatlinkshere.php
includes/specials/pagers/AllMessagesTablePager.php
tests/phpunit/includes/HtmlTest.php
tests/phpunit/includes/api/ApiOptionsTest.php