bug fix for null-ish values

This commit is contained in:
Joby Elliott 2021-01-21 08:34:05 -07:00
parent 1535246b72
commit 1dd277dc0b

View file

@ -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);