Use proper escaping function in option inner html
[MAILPOET-5233]
This commit is contained in:
committed by
Aschepikov
parent
94eeae5626
commit
4f42fa86a3
@ -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>';
|
||||
|
Reference in New Issue
Block a user