aboutsummaryrefslogtreecommitdiffstats
path: root/includes/htmlform/fields/HTMLRadioField.php
diff options
context:
space:
mode:
authorRoan Kattouw <roan.kattouw@gmail.com>2024-03-25 17:39:37 -0700
committerRoan Kattouw <roan.kattouw@gmail.com>2024-03-25 17:39:37 -0700
commitab33222b47eb882e71e388a389bb72f22237bc6c (patch)
tree20941bb0b1a2fde7ca95af01571c02ed0847d472 /includes/htmlform/fields/HTMLRadioField.php
parent9ca1deae471d6a634971a337b0467567ff2116e9 (diff)
downloadmediawikicore-ab33222b47eb882e71e388a389bb72f22237bc6c.tar.gz
mediawikicore-ab33222b47eb882e71e388a389bb72f22237bc6c.zip
HTMLRadioField: Escape plain text description messages
Change-Id: I40c7f93ac5ba71a6a3c8a1caa15da6a6be7e331b
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 ) ) {