Reference

Xml::tag()

Builds an XML tag

Xml::tag(string $name, mixed $content = null, array $attr = null, $indent = null): string

Parameters

Name Type Default Description
$name string
$content mixed null
$attr array null
$indent mixed null

Return type

string

Source code

kirby/src/Toolkit/Xml.php#L191