bug fix for null-ish values
This commit is contained in:
parent
1535246b72
commit
1dd277dc0b
1 changed files with 1 additions and 1 deletions
|
@ -99,7 +99,7 @@ trait TagTrait
|
|||
//build attributes
|
||||
if ($attr = $this->htmlAttributes()) {
|
||||
foreach ($attr as $key => $value) {
|
||||
if (!"$value") {
|
||||
if ($value === null) {
|
||||
$out .= " $key";
|
||||
} else {
|
||||
$value = htmlspecialchars($value);
|
||||
|
|
Loading…
Reference in a new issue