Parent getLegend() returns a plain string, and this method should
do the same.
Form section legends are escaped by the wrapFieldSetSection() method.
Change-Id: I2059b9182fba7362f3d6226252bdc3e032a06c57
*
* @param string $key
*
- * @return string
+ * @return string Plain text (not HTML-escaped)
*/
public function getLegend( $key ) {
return $this->msg( "{$this->mMessagePrefix}-$key" )->text();
$namespace = substr( $namespace, 2 );
return $namespace == NS_MAIN
- ? $this->msg( 'blanknamespace' )->escaped()
- : htmlspecialchars( $this->getContext()->getLanguage()->getFormattedNsText( $namespace ) );
+ ? $this->msg( 'blanknamespace' )->text()
+ : $this->getContext()->getLanguage()->getFormattedNsText( $namespace );
}
public function displaySection(