dl() now supports multiple descriptions per term
This commit is contained in:
1 parent
a4acc4a0ad
commit
b5d6fdedb6
1 file changed
+10
-2
+10
-2
@@ -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>';
|
||||
|
||||
Reference in new issue
Block a user