Commit 4bb2e5f6 authored by Taylor Otwell's avatar 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
......@@ -314,10 +314,17 @@ class HTML {
// produce a nested list within the list being built. Of course, nested
// lists may exist within nested lists, etc.
if (is_array($value))
{
if (is_int($key))
{
$html .= static::listing($type, $value);
}
else
{
$html .= '<li>'.$key.static::listing($type, $value).'</li>';
}
}
else
{
$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