aboutsummaryrefslogtreecommitdiffstats
path: root/includes/htmlform/fields/HTMLRadioField.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/htmlform/fields/HTMLRadioField.php')
-rw-r--r--includes/htmlform/fields/HTMLRadioField.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/htmlform/fields/HTMLRadioField.php b/includes/htmlform/fields/HTMLRadioField.php
index 40182160efdc..dde3b70b27b7 100644
--- a/includes/htmlform/fields/HTMLRadioField.php
+++ b/includes/htmlform/fields/HTMLRadioField.php
@@ -229,7 +229,7 @@ class HTMLRadioField extends HTMLFormField {
$optionDescriptions = [];
foreach ( $this->mParams['option-descriptions-messages'] as $value => $msgKey ) {
$msg = $this->msg( $msgKey );
- $optionDescriptions[$value] = $needsParse ? $msg->parse() : $msg->text();
+ $optionDescriptions[$value] = $needsParse ? $msg->parse() : $msg->escaped();
}
return $optionDescriptions;
} elseif ( array_key_exists( 'option-descriptions', $this->mParams ) ) {