Commit 4bb2e5f6 by Taylor Otwell

Merge pull request #698 from bencorlett/html-lists

Adding support for values in nested lists generated in the HTML class.
parents 79b42791 af2bf68a
...@@ -315,10 +315,17 @@ class HTML { ...@@ -315,10 +315,17 @@ class HTML {
// lists may exist within nested lists, etc. // lists may exist within nested lists, etc.
if (is_array($value)) if (is_array($value))
{ {
if (is_int($key))
{
$html .= static::listing($type, $value); $html .= static::listing($type, $value);
} }
else else
{ {
$html .= '<li>'.$key.static::listing($type, $value).'</li>';
}
}
else
{
$html .= '<li>'.static::entities($value).'</li>'; $html .= '<li>'.static::entities($value).'</li>';
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment