dl() now supports multiple descriptions per term

This commit is contained in:
Jack McDade committed 2015-10-23 17:45:01 -04:00
1 parent a4acc4a0ad
commit b5d6fdedb6
1 file changed
+10 -2
+10 -2
View File
@@ -293,8 +293,16 @@ class HtmlBuilder
$html = "<dl{$attributes}>";
foreach ($list as $key => $value) {
$html .= "<dt>$key</dt><dd>$value</dd>";
foreach ($list as $key => $value)
{
$value = (array) $value;
$html .= "<dt>$key</dt>";
foreach ($value as $v_key => $v_value)
{
$html .= "<dd>$v_value</dd>";
}
}
$html .= '</dl>';