'classes' => array( "mw-htmlform-field-$fieldType", $this->mClass, $errorClass ),
'align' => $this->getLabelAlignOOUI(),
'label' => $this->getLabel(),
- 'help' => $this->getHelpText(),
+ 'help' => new OOUI\HtmlSnippet( $this->getHelpText() ),
'infusable' => $infusable,
) );
/**
* Determine the help text to display
* @since 1.20
- * @return string
+ * @return string HTML
*/
public function getHelpText() {
$helptext = null;