About converting a create toc to its html version

Sabri LABBENE <[email protected]>
Newsgroups gmane.comp.web.wiki.phpwiki.talk
Message-ID <[email protected]>
Hi all,
I want to know which is the correct function I have to call in order to get a create toc plugin markup rendered.
For example:

I have the following in a var:
$plugin = '<?plugin CreateToc jshide||=0 with_toclink||=1 ?>';
Now I need to have the html version of the toc with titles formatted and correctly linked/anchored.

I imagine that there is some function I have to call and just pass to it the plugin markup to have the html toc. The RichTable plugin for instance could be rendered like I described:

Require_once("lib/BlockParser.php");
$xml_table = TransformText($plugin, 2.0, $the_pagename);
$html_table = $xml_table->AsXML();

Is it possible to have the html toc that way?

Thanks in advance,

-- Sabri.




-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.