Index: trunk/extensions/Translate/utils/TranslationEditPage.php |
— | — | @@ -48,7 +48,7 @@ |
49 | 49 | 'class' => 'mw-translate-edit-area', |
50 | 50 | 'rows' => $short ? 2: 10, |
51 | 51 | ); |
52 | | - $textarea = Html::element( 'textarea', $textareaParams, htmlspecialchars($translation) ); |
| 52 | + $textarea = Html::element( 'textarea', $textareaParams, $translation ); |
53 | 53 | |
54 | 54 | $hidden = array(); |
55 | 55 | $hidden[] = Xml::hidden( 'title', $this->getTitle()->getPrefixedDbKey() ); |
— | — | @@ -68,7 +68,7 @@ |
69 | 69 | 'method' => 'post', |
70 | 70 | ); |
71 | 71 | |
72 | | - $form = Html::element( 'form', $formParams, |
| 72 | + $form = Html::rawElement( 'form', $formParams, |
73 | 73 | implode( "\n", $hidden ) . "\n" . |
74 | 74 | $helpers->getBoxes() . "\n" . |
75 | 75 | "$textarea\n$summary$save" |
Index: trunk/extensions/Translate/utils/TranslationHelpers.php |
— | — | @@ -114,7 +114,7 @@ |
115 | 115 | } |
116 | 116 | |
117 | 117 | if ( count($boxes) ) { |
118 | | - return Html::element( 'div', array( 'class' => 'mw-sp-translate-edit-fields' ), implode( "\n\n", $boxes ) ); |
| 118 | + return Html::rawElement( 'div', array( 'class' => 'mw-sp-translate-edit-fields' ), implode( "\n\n", $boxes ) ); |
119 | 119 | } else { |
120 | 120 | throw new MWException( "no boxes" ); |
121 | 121 | } |
— | — | @@ -152,7 +152,7 @@ |
153 | 153 | |
154 | 154 | $text = TranslateUtils::convertWhiteSpaceToHTML( $text ); |
155 | 155 | $params = array( 'class' => 'mw-sp-translate-edit-tmsug', 'title' => $s['source'] ); |
156 | | - $boxes[] = Html::element( 'div', $params, self::legend( $label ) . $text . self::clear() ); |
| 156 | + $boxes[] = Html::rawElement( 'div', $params, self::legend( $label ) . $text . self::clear() ); |
157 | 157 | } |
158 | 158 | } |
159 | 159 | |
— | — | @@ -187,7 +187,7 @@ |
188 | 188 | wfMsg( 'word-separator') . |
189 | 189 | wfMsg( 'parentheses', $title ); |
190 | 190 | |
191 | | - $msg = Html::element( 'span', |
| 191 | + $msg = Html::rawElement( 'span', |
192 | 192 | array( 'class' => 'mw-translate-edit-deftext' ), |
193 | 193 | TranslateUtils::convertWhiteSpaceToHTML( $en ) |
194 | 194 | ); |
— | — | @@ -255,7 +255,7 @@ |
256 | 256 | |
257 | 257 | $text = TranslateUtils::convertWhiteSpaceToHTML( $text ); |
258 | 258 | $params = array( 'class' => 'mw-translate-edit-item' ); |
259 | | - $boxes[] = Html::element( 'div', $params, self::legend( $label ) . $text . self::clear() ); |
| 259 | + $boxes[] = Html::rawElement( 'div', $params, self::legend( $label ) . $text . self::clear() ); |
260 | 260 | } |
261 | 261 | |
262 | 262 | if ( count($boxes) ) { |
— | — | @@ -309,7 +309,7 @@ |
310 | 310 | } |
311 | 311 | |
312 | 312 | protected static function legend( $label ) { |
313 | | - return Html::element( 'div', array( 'class' => 'mw-translate-legend' ), $label ); |
| 313 | + return Html::rawElement( 'div', array( 'class' => 'mw-translate-legend' ), $label ); |
314 | 314 | } |
315 | 315 | |
316 | 316 | protected static function clear() { |