getView()->plugin('escapeHtml'); $item = $escaper($item); } $list .= '
  • ' . $item . '
  • ' . PHP_EOL; } else { $itemLength = 5 + strlen(PHP_EOL); if ($itemLength < strlen($list)) { $list = substr($list, 0, strlen($list) - $itemLength) . $this($item, $ordered, $attribs, $escape) . '' . PHP_EOL; } else { $list .= '
  • ' . $this($item, $ordered, $attribs, $escape) . '
  • ' . PHP_EOL; } } } if ($attribs) { $attribs = $this->htmlAttribs($attribs); } else { $attribs = ''; } $tag = ($ordered) ? 'ol' : 'ul'; return '<' . $tag . $attribs . '>' . PHP_EOL . $list . '' . PHP_EOL; } }