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
|
//build attributes
|
||||||
if ($attr = $this->htmlAttributes()) {
|
if ($attr = $this->htmlAttributes()) {
|
||||||
foreach ($attr as $key => $value) {
|
foreach ($attr as $key => $value) {
|
||||||
if (!"$value") {
|
if ($value === null) {
|
||||||
$out .= " $key";
|
$out .= " $key";
|
||||||
} else {
|
} else {
|
||||||
$value = htmlspecialchars($value);
|
$value = htmlspecialchars($value);
|
||||||
|
|
Loading…
Reference in a new issue