Commit af2bf68a by Ben Corlett

Adding support for values in nested lists generated in the HTML class.

Signed-off-by: Ben Corlett <bencorlett@me.com>
parent 91c64b38
......@@ -315,10 +315,17 @@ class HTML {
// 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