Index: trunk/extensions/SemanticForms/includes/forminputs/SF_RadioButtonInput.php |
— | — | @@ -85,16 +85,14 @@ |
86 | 86 | array_key_exists( 'value_labels', $other_args ) && |
87 | 87 | is_array( $other_args['value_labels'] ) && |
88 | 88 | array_key_exists( $possible_value, $other_args['value_labels'] ) |
89 | | - ) |
90 | | - { |
| 89 | + ) { |
91 | 90 | $label = htmlspecialchars( $other_args['value_labels'][$possible_value] ); |
92 | 91 | } else { |
93 | 92 | $label = $possible_value; |
94 | 93 | } |
95 | 94 | |
96 | | - $text .= "\t" . Html::openElement( 'span', $itemAttrs ) . |
97 | | - Html::input( $input_name, $possible_value, 'radio', $radiobutton_attrs ) . " $label\n" . |
98 | | - Html::closeElement( 'span' ); |
| 95 | + $text .= "\t" . Html::rawElement( 'span', $itemAttrs, |
| 96 | + Html::input( $input_name, $possible_value, 'radio', $radiobutton_attrs ) . " $label" ) . "\n"; |
99 | 97 | } |
100 | 98 | |
101 | 99 | $spanClass = 'radioButtonSpan'; |