Remove most named character references from output
[lhc/web/wiklou.git] / includes / HTMLForm.php
index 78c3794..b5472ac 100644 (file)
@@ -587,7 +587,7 @@ class HTMLForm {
                                        : $value->getDefault();
                                $tableHtml .= $value->getTableRow( $v );
 
-                               if ( $value->getLabel() != ' ' )
+                               if ( $value->getLabel() != ' ' )
                                        $hasLeftColumn = true;
                        } elseif ( is_array( $value ) ) {
                                $section = $this->displaySection( $value, $key );
@@ -1133,7 +1133,7 @@ class HTMLCheckField extends HTMLFormField {
                        $attr['disabled'] = 'disabled';
                }
 
-               return Xml::check( $this->mName, $value, $attr ) . ' ' .
+               return Xml::check( $this->mName, $value, $attr ) . ' ' .
                        Html::rawElement( 'label', array( 'for' => $this->mID ), $this->mLabel );
        }
 
@@ -1142,7 +1142,7 @@ class HTMLCheckField extends HTMLFormField {
         * added in getInputHTML(), rather than HTMLFormField::getRow()
         */
        function getLabel() {
-               return ' ';
+               return ' ';
        }
 
        function loadDataFromRequest( $request ) {
@@ -1333,7 +1333,7 @@ class HTMLMultiSelectField extends HTMLFormField {
 
                                $checkbox = Xml::check( $this->mName . '[]', in_array( $info, $value, true ),
                                                                $attribs + $thisAttribs );
-                               $checkbox .= ' ' . Html::rawElement( 'label', array( 'for' => $this->mID . "-$info" ), $label );
+                               $checkbox .= ' ' . Html::rawElement( 'label', array( 'for' => $this->mID . "-$info" ), $label );
 
                                $html .= $checkbox . '<br />';
                        }
@@ -1425,7 +1425,7 @@ class HTMLRadioField extends HTMLFormField {
                                        $info == $value,
                                        $attribs + array( 'id' => $id )
                                );
-                               $html .= '&nbsp;' .
+                               $html .= '&#160;' .
                                                Html::rawElement( 'label', array( 'for' => $id ), $label );
 
                                $html .= "<br />\n";