/* Tag: unordered list [list]*line 1*line2*line 3*line 4*line5 etc[/list] */ /* Tag: ordered list [list=]*line 1*line2*line 3*line 4*line5 etc[/list] */ /* valid list types: disc circle square decimal 1, 2, 3 (default) lower-roman i, ii, iii upper-roman I, II, III lower-alpha a, b, c upper-alpha A, B, C */ $listitems = explode("*", $code_text); if ($parm == '') { /* unordered list */ $listtext = ""; } else { $type = $tp -> toAttribute($parm); $listtext = "\n
    "; $trailer = "
"; } foreach($listitems as $item) { if($item && $item != E_NL) { $listtext .= "
  • $item
  • "; } } return $listtext.$trailer;