"process_ul", "ol" => "process_ol"), "/li"); }; function process_ol(&$sample_html, $offset) { return autoclose_tag($sample_html, $offset, "(li|/ol)", array("li" => "process_li"), "/ol"); }; function process_ul(&$sample_html, $offset) { return autoclose_tag($sample_html, $offset, "(li|/ul)", array("li" => "process_li"), "/ul"); }; function process_lists(&$sample_html, $offset) { return autoclose_tag($sample_html, $offset, "(ul|ol)", array("ul" => "process_ul", "ol" => "process_ol"), ""); }; ?>