Skip to content

Kirby 4.2.0

Html::isVoid()

Checks if a tag is self-closing

Html::isVoid(string $tag): bool

Parameters

Name Type Default
$tag * string

Return type

bool

Parent class

Kirby\Toolkit\Html