fix: [helpers:bootstrap] Make sure to sanitize passed text

pull/93/head
Sami Mokaddem 2021-12-01 08:26:17 +01:00
parent d2a88b3a18
commit da889c4ca2
No known key found for this signature in database
GPG Key ID: 164C473F627A06FA
1 changed files with 2 additions and 2 deletions

View File

@ -549,7 +549,7 @@ class BoostrapAlert extends BootstrapGeneric
private function genContent()
{
return !is_null($this->options['html']) ? $this->options['html'] : $this->options['text'];
return !is_null($this->options['html']) ? $this->options['html'] : h($this->options['text']);
}
}
@ -1445,7 +1445,7 @@ class BoostrapProgress extends BootstrapGeneric
class BoostrapCollapse extends BootstrapGeneric
{
private $defaultOptions = [
'text' => '',
'title' => '',
'open' => false,
];