view->escape($item);
}
$list .= '
' . $item . '';
} else {
if (5 < strlen($list)) {
$list = substr($list, 0, strlen($list) - 5) . $this->htmlList($item, $ordered, $attribs, $escape) . '';
} else {
$list .= '' . $this->htmlList($item, $ordered, $attribs, $escape) . '';
}
}
}
if ($attribs) {
$attribs = $this->_htmlAttribs($attribs);
} else {
$attribs = '';
}
$tag = 'ul';
if ($ordered) {
$tag = 'ol';
}
return '<' . $tag . $attribs . '>' . $list . '' . $tag . '>';
}
}