case 'am_default' :
case 'am_actual' :
- return Sanitizer::escapeHtmlAllowEntities( $value, ENT_QUOTES );
+ return Sanitizer::escapeHtmlAllowEntities( $value );
}
return '';
} elseif ( $field === 'am_title' ) {
return array( 'class' => $field );
} else {
- return array( 'lang' => wfBCP47( $this->langcode ), 'dir' => $this->lang->getDir(), 'class' => $field );
+ return array(
+ 'lang' => $this->lang->getHtmlCode(),
+ 'dir' => $this->lang->getDir(),
+ 'class' => $field
+ );
}
}