Skip to content

Commit

Permalink
Allow children for self-closing tags
Browse files Browse the repository at this point in the history
  • Loading branch information
assertchris committed Oct 23, 2018
1 parent eeefce3 commit cb22cff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion source/Renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ public function render($name, $props = null)
$this->attributesFrom($props),
]));

if (in_array($name, $this->selfClosingTags)) {
if (in_array($name, $this->selfClosingTags) && !$children) {
return $this->format("<{$open} />");
}

Expand Down

0 comments on commit cb22cff

Please sign in to comment.