Use proper escaping function in option inner html

[MAILPOET-5233]
This commit is contained in:
Rostislav Wolny
2023-04-17 09:13:33 +02:00
committed by Aschepikov
parent 94eeae5626
commit 4f42fa86a3

View File

@ -51,7 +51,7 @@ class Select {
if (!empty($block['params']['required'])) {
$label .= ' *';
}
$html .= '<option value="" disabled selected hidden>' . $this->wp->escAttr($label) . '</option>';
$html .= '<option value="" disabled selected hidden>' . $this->wp->escHtml($label) . '</option>';
} else {
if (empty($block['params']['required'])) {
$html .= '<option value="">-</option>';