Index: trunk/extensions/CodeReview/ui/WordCloud.php |
— | — | @@ -92,7 +92,8 @@ |
93 | 93 | * Default text callback for word display |
94 | 94 | */ |
95 | 95 | public function defaultTextCallback( $word, $sizeRange ) { |
96 | | - return "<span class=\"mw-wordcloud-size-$sizeRange\"> {$word} </span>"; |
| 96 | + return Html::element( 'span', array( |
| 97 | + 'class' => 'mw-wordcloud-size-' . $sizeRange ), $word ); |
97 | 98 | } |
98 | 99 | |
99 | 100 | /** |